Java Code Examples for org.apache.ibatis.mapping.FetchType#EAGER

The following examples show how to use org.apache.ibatis.mapping.FetchType#EAGER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RDBAnalyzeMapper.java    From RCT with Apache License 2.0 5 votes vote down vote up
@Select("select * from rdb_analyze")
@Results({ @Result(id = true, column = "id", property = "id"),
		@Result(column = "auto_analyze", property = "autoAnalyze"),
		@Result(column = "schedule", property = "schedule"), @Result(column = "dataPath", property = "dataPath"),
		@Result(column = "prefixes", property = "prefixes"), @Result(column = "is_report", property = "report"),
		@Result(column = "mailTo", property = "mailTo"), @Result(column = "analyzer", property = "analyzer"),
		@Result(column = "pid", property = "redisInfo", one = @One(select = "org.nesc.ecbd.mapper.RedisInfoMapper.queryById", fetchType = FetchType.EAGER)) })
List<RDBAnalyze> queryList();
 
Example 2
Source File: RDBAnalyzeMapper.java    From RCT with Apache License 2.0 5 votes vote down vote up
@Select("select * from rdb_analyze where pid = #{pid}")
@Results({ @Result(id = true, column = "id", property = "id"),
		@Result(column = "auto_analyze", property = "autoAnalyze"),
		@Result(column = "schedule", property = "schedule"), @Result(column = "dataPath", property = "dataPath"),
		@Result(column = "prefixes", property = "prefixes"), @Result(column = "is_report", property = "report"),
		@Result(column = "mailTo", property = "mailTo"), @Result(column = "analyzer", property = "analyzer"),
		@Result(column = "pid", property = "redisInfo", one = @One(select = "org.nesc.ecbd.mapper.RedisInfoMapper.queryById", fetchType = FetchType.EAGER)) })
RDBAnalyze getRDBAnalyzeByPid(Long pid);
 
Example 3
Source File: BoundBlogMapper.java    From mybaties with Apache License 2.0 5 votes vote down vote up
@Select({
    "SELECT *",
    "FROM blog"
})
@Results({ 
    @Result(property = "author", column = "author_id", one = @One(select = "org.apache.ibatis.binding.BoundAuthorMapper.selectAuthor", fetchType=FetchType.EAGER)), 
    @Result(property = "posts", column = "id", many = @Many(select = "selectPostsById", fetchType=FetchType.EAGER))
})
List<Blog> selectBlogsWithAutorAndPostsEagerly();
 
Example 4
Source File: BoundBlogMapper.java    From mybatis with Apache License 2.0 5 votes vote down vote up
@Select({
    "SELECT *",
    "FROM blog"
})
@Results({ 
    @Result(property = "author", column = "author_id", one = @One(select = "org.apache.ibatis.binding.BoundAuthorMapper.selectAuthor", fetchType=FetchType.EAGER)), 
    @Result(property = "posts", column = "id", many = @Many(select = "selectPostsById", fetchType=FetchType.EAGER))
})
List<Blog> selectBlogsWithAutorAndPostsEagerly();