• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java One类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.ibatis.annotations.One的典型用法代码示例。如果您正苦于以下问题:Java One类的具体用法?Java One怎么用?Java One使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



One类属于org.apache.ibatis.annotations包,在下文中一共展示了One类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: findAttachmentsByTaskId

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
@Select("SELECT ID, TASK_ID, CREATED, MODIFIED, CLASSIFICATION_KEY, REF_COMPANY, REF_SYSTEM, REF_INSTANCE, REF_TYPE, REF_VALUE, CHANNEL, RECEIVED, CUSTOM_ATTRIBUTES "
    + "FROM ATTACHMENT "
    + "WHERE TASK_ID = #{taskId}")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "taskId", column = "TASK_ID"),
    @Result(property = "created", column = "CREATED"),
    @Result(property = "modified", column = "MODIFIED"),
    @Result(property = "classification", column = "CLASSIFICATION_KEY", javaType = Classification.class,
        one = @One(select = CLASSIFICATION_FINDBYID)),
    @Result(property = "objectReference.company", column = "REF_COMPANY"),
    @Result(property = "objectReference.system", column = "REF_SYSTEM"),
    @Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
    @Result(property = "objectReference.type", column = "REF_TYPE"),
    @Result(property = "objectReference.value", column = "REF_VALUE"),
    @Result(property = "channel", column = "CHANNEL"),
    @Result(property = "received", column = "RECEIVED"),
    @Result(property = "customAttributes", column = "CUSTOM_ATTRIBUTES", jdbcType = JdbcType.BLOB,
        javaType = Map.class, typeHandler = MapTypeHandler.class),
})
List<AttachmentImpl> findAttachmentsByTaskId(@Param("taskId") String taskId);
 
开发者ID:Taskana,项目名称:taskana,代码行数:22,代码来源:AttachmentMapper.java


示例2: getSubmission

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
/**
 * 通过评测记录唯一标识符获取试题对象.
 * @param submissionId - 评测记录的唯一标识符
 * @return 一个评测记录对象
 */
@Select("SELECT * FROM voj_submissions WHERE submission_id = #{submissionId}")
@Options(useCache = true)
@Results({
	@Result(property = "submissionId", column = "submission_id"),
	@Result(property = "problem", column = "problem_id", javaType = Problem.class, one = @One(select="org.verwandlung.voj.judger.mapper.ProblemMapper.getProblem")),
	@Result(property = "uid", column = "uid"),
	@Result(property = "language", column = "language_id", javaType=Language.class, one = @One(select="org.verwandlung.voj.judger.mapper.LanguageMapper.getLanguageUsingId")),
	@Result(property = "submitTime", column = "submission_submit_time"),
	@Result(property = "executeTime", column = "submission_execute_time"),
	@Result(property = "usedTime", column = "submission_used_time"),
	@Result(property = "usedMemory", column = "submission_used_memory"),
	@Result(property = "judgeResultSlug", column = "submission_judge_result"),
	@Result(property = "judgeScore", column = "submission_judge_score"),
	@Result(property = "judgeLog", column = "submission_judge_log"),
	@Result(property = "code", column = "submission_code"),
})
Submission getSubmission(@Param("submissionId") long submissionId);
 
开发者ID:hzxie,项目名称:voj,代码行数:23,代码来源:SubmissionMapper.java


示例3: selectWithBothOneAndMany

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
@Select({
    "SELECT *",
    "FROM blog"
})
@Results({ 
    @Result(
           property = "author", column = "author_id", 
           one = @One(select = "org.apache.ibatis.binding.BoundAuthorMapper.selectAuthor"), 
           many = @Many(select = "selectPostsById"))
})
List<Blog> selectWithBothOneAndMany();
 
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:12,代码来源:MapperWithOneAndMany.java


示例4: getUserUsingUsername

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
/**
 * 通过用户名获取用户对象.
 * @param username - 用户名
 * @return 预期的用户对象或空引用
 */
@Select("SELECT * FROM voj_users WHERE username = #{username}")
@Options(useCache = false)
@Results(value = {
	@Result(property = "userGroup", column = "user_group_id", javaType = UserGroup.class, one = @One(select="org.verwandlung.voj.judger.mapper.UserGroupMapper.getUserGroupUsingId")),
	@Result(property = "preferLanguage", column = "prefer_language_id", javaType = Language.class, one = @One(select="org.verwandlung.voj.judger.mapper.LanguageMapper.getLanguageUsingId"))
})
User getUserUsingUsername(@Param("username") String username);
 
开发者ID:hzxie,项目名称:voj,代码行数:13,代码来源:UserMapper.java


示例5: selectWithBothOneAndMany

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
@Select({
  "SELECT *",
  "FROM blog"
})
@Results({ 
  @Result(
     property = "author", column = "author_id", 
     one = @One(select = "org.apache.ibatis.binding.BoundAuthorMapper.selectAuthor"),
     many = @Many(select = "selectPostsById"))
})
List<Blog> selectWithBothOneAndMany();
 
开发者ID:mybatis,项目名称:mybatis-3,代码行数:12,代码来源:MapperWithOneAndMany.java


示例6: findTasksByWorkbasketIdAndState

import org.apache.ibatis.annotations.One; //导入依赖的package包/类
@Select("SELECT ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, DUE, NAME, DESCRIPTION, PRIORITY, STATE, CLASSIFICATION_KEY, WORKBASKET_KEY, DOMAIN, OWNER, POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_ATTRIBUTES, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10 "
    + "FROM TASK "
    + "WHERE WORKBASKET_KEY = #{workbasketKey} "
    + "AND STATE = #{taskState}")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "created", column = "CREATED"),
    @Result(property = "claimed", column = "CLAIMED"),
    @Result(property = "completed", column = "COMPLETED"),
    @Result(property = "modified", column = "MODIFIED"),
    @Result(property = "planned", column = "PLANNED"),
    @Result(property = "due", column = "DUE"),
    @Result(property = "name", column = "NAME"),
    @Result(property = "description", column = "DESCRIPTION"),
    @Result(property = "note", column = "NOTE"),
    @Result(property = "priority", column = "PRIORITY"),
    @Result(property = "state", column = "STATE"),
    @Result(property = "workbasketKey", column = "WORKBASKET_KEY"),
    @Result(property = "classification", column = "CLASSIFICATION_KEY", javaType = Classification.class,
        one = @One(select = CLASSIFICATION_FINDBYKEYANDDOMAIN)),
    @Result(property = "domain", column = "DOMAIN"),
    @Result(property = "owner", column = "OWNER"),
    @Result(property = "primaryObjRef.company", column = "POR_COMPANY"),
    @Result(property = "primaryObjRef.system", column = "POR_SYSTEM"),
    @Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE"),
    @Result(property = "primaryObjRef.type", column = "POR_TYPE"),
    @Result(property = "primaryObjRef.value", column = "POR_VALUE"),
    @Result(property = "isRead", column = "IS_READ"),
    @Result(property = "isTransferred", column = "IS_TRANSFERRED"),
    @Result(property = "customAttributes", column = "CUSTOM_ATTRIBUTES", jdbcType = JdbcType.BLOB,
        javaType = Map.class, typeHandler = MapTypeHandler.class),
    @Result(property = "custom1", column = "CUSTOM_1"),
    @Result(property = "custom2", column = "CUSTOM_2"),
    @Result(property = "custom3", column = "CUSTOM_3"),
    @Result(property = "custom4", column = "CUSTOM_4"),
    @Result(property = "custom5", column = "CUSTOM_5"),
    @Result(property = "custom6", column = "CUSTOM_6"),
    @Result(property = "custom7", column = "CUSTOM_7"),
    @Result(property = "custom8", column = "CUSTOM_8"),
    @Result(property = "custom9", column = "CUSTOM_9"),
    @Result(property = "custom10", column = "CUSTOM_10")})
List<TaskImpl> findTasksByWorkbasketIdAndState(@Param("workbasketKey") String workbasketKey,
    @Param("taskState") TaskState taskState);
 
开发者ID:Taskana,项目名称:taskana,代码行数:44,代码来源:TaskMapper.java



注:本文中的org.apache.ibatis.annotations.One类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AclFeature类代码示例发布时间:2022-05-23
下一篇:
Java ISourceLookupDirector类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap