Target:
Classes
Specifies the discriminator column for the SINGLE_TABLE
and JOINED
Inheritance
mapping strategies.
The strategy and the discriminator column are only specified in the root of an entity class hierarchy or subhierarchy in which a different inheritance strategy is applied
If the DiscriminatorColumn
annotation is missing, and a discriminator column is required, the name of the discriminator column defaults to "DTYPE"
and the discriminator type to DiscriminatorType.STRING
.
Since:
JPA 1.0
See Also:
DiscriminatorValue
(Optional) The SQL fragment that is used when generating the DDL for the discriminator column.
Defaults to the provider-generated SQL to create a column of the specified discriminator type.
Default value:
""
Since:
JPA 1.0
Default value:
javax.persistence.DiscriminatorType.STRING
Since:
JPA 1.0
(Optional) The column length for String-based discriminator types. Ignored for other discriminator types.
Default value:
31
Since:
JPA 1.0
(Optional) The name of column to be used for the discriminator.
Default value:
"DTYPE"
Since:
JPA 1.0
分享到:
相关推荐
JPA Annotation Reference
相关文章: JPA标注 EJB的资料辅导(7) EJB的资料辅导(6) 推荐圈子: Database圈子 更多相关推荐 1.@Entity
JDK1.6的新特性: 注解 其中介绍了JPA框架中的常用注解
Spring Data JPA系列2:SpringBoot集成JPA详细教程,快速在项目中熟练使用JPA.doc
毕设-基于springboot的网上订餐系统,项目经过测试,可完美运行! 环境要求:jdk1.8 maven 技术体系:springboot + jpa + thymeleaf 数据库:mysql ide:IDEA 毕设-基于springboot的网上订餐系统,项目经过测试,...
JPA2教程,JPA标准参与者编写,全面接受JPA的方方面面。
Spring Data JPA系列3:JPA项目中核心场景与进阶用法介绍.doc
chm格式均能打开,若打开空白,右键属性解锁锁定即可
项目:JPA:Java和JPA:Persista seus objetos com和JPA2 e Hibernate
赠送jar包:hibernate-jpa-2.1-api-1.0.2.Final.jar; 赠送原API文档:hibernate-jpa-2.1-api-1.0.2.Final-javadoc.jar; 赠送源代码:hibernate-jpa-2.1-api-1.0.2.Final-sources.jar; 赠送Maven依赖信息文件:...
学习JPA——Hibernate_Annotation使用实例学习JPA——Hibernate_Annotation使用实例学习JPA——Hibernate_Annotation使用实例
jpa第一步:此存储库不断更新
本文是介绍Spring-data-jpa的PPT的学习笔记,整理了Spring Data JPA相关知识配置和实践源码. 本文介绍知识点有: JPA与Spring的相关配置 JPA 方法名常用查询 JPA 使用@Query注解实现JPQL和本地自定义查询 JPA API 条件...
第一章:Spring Data JPA入门 包括:是什么、能干什么、有什么、HelloWorld等 第二章:JpaRepository基本功能 包括:代码示例JpaRepository提供的CRUD功能,还有翻页、排序等功能 第三章:JpaRepository的查询 ...
jpa-javatime 一个带有适配器的简单项目,用于在 JPA 中使用java.time类。 此时 JPA 提供程序不会将java.time类识别为时间字段。 所以这个项目的存在就是为了解决这个差距,添加了一些转换器来允许我们在我们的项目...
声明:该应用仅仅是技术研究:Spring Data JPA的配置和常见api的使用&maven构建项目,其他技术不在此研究 内涵sql和各种Spring Data JPA测试和案例,导入&创建DB,配置好maven便可运行 maven构建项目&问题:...
1:JPA: : 2:对象数据库: ://www.objectdb.com/ 3:JPA 性能基准: ://www.jpab.org/All/All/All.html 支持功能 支持所有蓝图功能, 除外 支撑 支持 支持 Java 5、6 或 7 支持 JPA 你需要哪一个取决于你想用...
使用学生(student)、老师(teacher)、班级(class)反映出Hibernate annotation JPA 的一对多、多对多、多对一的关联。或许对您有用
jpa入门案例:单表查询,包括分页查询 使用springboot来整合实现
Maven坐标:org.springframework.data:spring-data-jpa:2.0.9.RELEASE; 标签:springframework、data、spring、jpa、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,...