hibernate 注解大全
2019年5月1日21:39:55
原文:http://docs.jboss.org/hibernate/orm/5.4/javadocs/
这个是hibernate 5.4版本
基于hibernate的一些工具api文档
http://docs.jboss.org/hibernate/
spring jpa的文档
https://spring.io/projects/spring-data-jpa#learn
Package org.hibernate.annotations
Class Summary Class Description QueryHints Consolidation of hints available to Hibernate JPA queries.Enum Summary Enum Description CacheConcurrencyStrategy Cache concurrency strategy.CacheModeType Enumeration for the different interaction modes between the session and the Level 2 Cache.CascadeType Cascade types (can override default JPA cascades).FetchMode Fetch options on associations.FlushModeType Enumeration extending javax.persistence flush modes.GenerationTime At what time(s) will the generation occur?LazyCollectionOption Lazy options available for a collection.LazyToOneOption Lazy options available for a ToOne association.NotFoundAction Possible actions when an associated entity is not found in the database.OnDeleteAction Possible actions for on-delete.OptimisticLockType Possible optimistic locking strategies.PolymorphismType Type of available polymorphism for a particular entity.ResultCheckStyle Possible styles of checking return codes on SQL INSERT, UPDATE and DELETE queries.SortType Deprecated SinceSortis deprecated.SourceType Where should Hibernate retrieve the value from? From the database, or from the current JVM?Annotation Types Summary Annotation Type Description AccessType Deprecated UseAttributeAccessorinstead; renamed to avoid confusion with the JPAAccessTypeenum.Any Defines a ToOne-style association pointing to one of several entity types depending on a local discriminator, as opposed to discriminated inheritance where the discriminator is kept as part of the entity hierarchy.AnyMetaDef AnyMetaDefs Used to group togetherAnyMetaDefannotations.AttributeAccessor Names a persistent property access strategy (PropertyAccessStrategy) to use.BatchSize Defines size for batch loading of collections or lazy entities.Cache Add caching strategy to a root entity or a collection.Cascade Apply a cascade strategy on an association.Check Arbitrary SQL CHECK constraints which can be defined at the class, property or collection level.CollectionId Describe an identifier column for a bag (ie an idbag).CollectionType Names a custom collection type for a persistent collection.ColumnDefault Identifies the DEFAULT value to apply to the associated column via DDL.Columns Support an array of columns.ColumnTransformer Custom SQL expression used to read the value from and write a value to a column.ColumnTransformers Plural annotation for @ColumnTransformer.CreationTimestamp Marks a property as the creation timestamp of the containing entity.DiscriminatorFormula Used to apply a Hibernate formula (derived value) as the inheritance discriminator "column".DiscriminatorOptions Optional annotation to express Hibernate specific discrimintor properties.DynamicInsert For inserting, should this entity use dynamic sql generation where only non-null columns get referenced in the prepared sql statement?DynamicUpdate For updating, should this entity use dynamic sql generation where only changed columns get referenced in the prepared sql statement?Note, for re-attachment of detached entities this is not possible without select-before-update being enabled.
Entity Deprecated See individual attributes for intended replacements.Fetch Define the fetching strategy used for the given association.FetchProfile Define the fetching strategy profile.FetchProfile.FetchOverride Descriptor for a particular association override.FetchProfiles Collects together multiple fetch profiles.Filter Add filters to an entity or a target entity of a collection.FilterDef Filter definition.FilterDefs Array of filter definitions.FilterJoinTable Add filters to a join table collection.FilterJoinTables Add multiple@FilterJoinTableto a collection.Filters Add multiple@Filters.ForeignKey Deprecated Prefer the JPA 2.1 introducedForeignKeyinstead.Formula Defines a formula (derived value) which is a SQL fragment that acts as a @Column alternative in most cases.Generated The annotated property is generated by the database.GeneratorType Marks a property as generated, specifying theValueGeneratortype to be used for generating the value.GenericGenerator Generator annotation describing any kind of Hibernate generator in a generic (de-typed) manner.GenericGenerators Array of generic generator definitions.Immutable Mark an Entity, a Collection, or an Attribute type as immutable.Index Deprecated UsingIndexinstead.IndexColumn Deprecated Prefer the standard JPAOrderColumnannotation and the Hibernate specificListIndexBase(for replacingIndexColumn.base()).JoinColumnOrFormula Allows joins based on column or a formula.JoinColumnsOrFormulas Collection of@JoinColumnOrFormuladefinitions.JoinFormula To be used as a replacement for@JoinColumnin most places.LazyCollection Define the lazy status of a collection.LazyGroup For use with bytecode-enhanced lazy-loading support.LazyToOne Define the laziness options available for a ToOne (ie OneToOne or ManyToOne) association.ListIndexBase Defines the start index value for a list index as stored on the database.Loader Used to override how Hibernate performs load operations.ManyToAny This is the collection-valued form of @Any definitions.MapKeyType Allows defining the type of the key of a persistent map.MetaValue Maps a given discriminator value to the corresponding entity type.NamedNativeQueries A grouping of Hibernate-specificNamedNativeQuerydefinitions.NamedNativeQuery ExtendsNamedNativeQuerywith Hibernate features.NamedQueries A grouping of Hibernate-specificNamedQuerydefinitions.NamedQuery ExtendsNamedQuerywith Hibernate features.Nationalized Marks a character data type (String, Character, character, Clob) as being a nationalized variant (NVARCHAR, NCHAR, NCLOB, etc).NaturalId This specifies that a property is part of the natural id of the entity.NaturalIdCache Used to specify that the natural id values associated with the annotated entity should be cached in Hibernate's shared (L2) cache.NotFound Action to do when an element is not found on a association.OnDelete Strategy to use on collections, arrays and on joined subclasses delete.OptimisticLock Whether or not a change of the annotated property will trigger a entity version increment.OptimisticLocking Used to define the style of optimistic locking to be applied to an entity.OrderBy Order a collection using SQL ordering (not HQL ordering).ParamDef A parameter definition.Parameter Generic parameter (basically a key/value combination) used to parametrize other annotations.Parent Reference the property as a pointer back to the owner (generally the owning entity).Persister Specify a custom persister.Polymorphism Used to define the type of polymorphism Hibernate will apply to entity hierarchies.Proxy Lazy and proxy configuration of a particular class.RowId Support forROWIDmapping feature of Hibernate.SelectBeforeUpdate Should the entity's current state be selected from the database when determining whether to perform an update when re-attaching detached entities?Sort Deprecated UseSortComparatororSortNaturalinstead depending on need.SortComparator Specifies in-memory Set/Map sorting using a specifiedComparatorfor sorting.SortNatural Specifies in-memory Set/Map sorting using natural sorting.Source Optional annotation in conjunction withVersionand timestamp version properties indicating the source of the timestamp value.SQLDelete Custom SQL statement for delete of an entity/collection.SQLDeleteAll Custom SQL statement for delete of all of a collection's elements.SqlFragmentAlias Describe aliases for filters.SQLInsert Custom SQL statement for insertion of an entity/collection.SQLUpdate Custom SQL statement for update of an entity/collection.Subselect Map an immutable and read-only entity to a given SQL select expression.Synchronize Ensures that auto-flush happens correctly and that queries against the derived entity do not return stale data.Table Complementary information to a table either primary or secondary.Tables A grouping of tables.Target Define an explicit target, avoiding reflection and generics resolving.Tuplizer Define a tuplizer for an entity or a component.Tuplizers Grouping of tuplizers.Type Defines a Hibernate type mapping.TypeDef A type definition.TypeDefs Plural form ofTypeDef.UpdateTimestamp Marks a property as the update timestamp of the containing entity.ValueGenerationType Marks an annotation type as a generator annotation type.Where Where clause to add to the element Entity or target entity of a collection.WhereJoinTable Where clause to add to the collection join table.
https://docs.spring.io/spring-data/jpa/docs/2.1.6.RELEASE/api/
hibernate 注解大全的更多相关文章
- springBoot系列-->springBoot注解大全
一.注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan.@Configuration和@EnableAutoConfiguration ...
- SpringBoot注解大全(转)
原文链接:[springBoot系列]--springBoot注解大全 一.注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan.@Co ...
- Spring Boot注解大全,一键收藏了!
本文首发于微信公众号[猿灯塔],转载引用请说明出处 今天是猿灯塔“365天原创计划”第5天. 今天呢!灯塔君跟大家讲: Spring Boot注解大全 一.注解(annotations)列表 @Spr ...
- Hibernate注解----关联映射注解以及课程总结详解----图片版本
上一篇,记录了Hibernate注解----类级别注解以及属性注解详解 ,我们这一节主要讲解的是Hibernate注解----关联映射注解以及课程总结详解. 本节的主要内容: 第3章 关联映射注解 3 ...
- Hibernate注解----类级别注解以及属性注解详解----图片版本
这篇文章是我在慕课网上学习Hibernate注解的时候进行手机以及整理的笔记. 今天把它分享给大家,希望对大家有用.可以进行收藏,然后需要的时候进行对照一下即可.这样能起到一个查阅的作用. 本文主要讲 ...
- hibernate注解随笔—10月8日
hibernate注解(herbinate4 jar包注解可用,使用hibernate3.3注解失败) 如果javabean与数据库中表名一致(不区分大小写),则注解不用写@Table(name=&q ...
- Hibernate注解使用以及Spring整合
Hibernate注解使用以及Spring整合 原文转自:http://wanqiufeng.blog.51cto.com/409430/484739 (1) 简介: 在过去几年里,Hibernate ...
- Hibernate注解映射联合主键的三种主要方式
今天在做项目的时候,一个中间表没有主键,所有在创建实体的时候也未加组件,结果报以下错误: org.springframework.beans.factory.BeanCreationException ...
- 【maven + hibernate(注解) +spring +springMVC】 使用maven搭建项目
研究,百度,查资料+好友帮助,使用MyEcplise2015工具,通过maven搭建hibernate+springMVC+spring的项目,数据库采用MySql5.5 不过使用的版本会在项目搭建过 ...
随机推荐
- Linux学习25-Xshell设置页面最大显示行数
前言 在使用xshell查看日志的时候,有时候日志太多,往上翻的时候,前面的就找不到了. 需要设置xshell的页面显示最大行数,查看更多的日志详情. 设置显示行数 左上角-文件-属性 终端-设置最大 ...
- version GLIBCXX3.4.21 not defined in file libstdc++.so.6 with link time reference
问题:在运行C++程序时,输入 ./a.out 输出:symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev, version ...
- c#中的解析HTML组件 -- (HtmlAgilityPack,Jumony,ScrapySharp,NSoup,Fizzler)
做数据抓取,网络爬虫方面的开发,自然少不了解析HTML源码的操作.那么问题来了,到底.NET如何来解析HTML,有哪些解析HTML源码的好用的,有效的组件呢? 作者在开始做这方面开发的时候就被这些 ...
- test20191210 钟子谦
100+40+0=140.暴力没写满-- 简单模拟 很久很久以前,有一个 \(1\sim n\) 的排列 \(a\),还有一个长度为 \(q\) 的,每个元素在 \(1\) 到 \(n\) 之间的序列 ...
- IE浏览器兼容性问题输出
1.时间函数 var startTime=new Date(a); var endTime=new Date(b); 如果a,b的时间格式是:“2017-08-01,需要将格式转换成“2017/08/ ...
- ajax jsonp函数调用
jsonp数据 jsonpHandler({name:"liujinyu",age:"24"}) ajax调用 $.ajax({ type:'GET', ...
- Git git2.8.1客户端安装教程
Git git2.8.1客户端安装教程 一 Git介绍 git是一款免费.开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目. 分布式相比于集中式的最大区别在于开发者可以提交到本地,每个开 ...
- 11.2Test
11.2Test 题目 描述 做法 \(BSOJ6367\) 求一个字符串内出现最多长度为\(K\)的子串 定长\(Hash\) \(BSOJ6368\) 给出数列\(a_{i+2}=ka_{i+1} ...
- map访问key不存在的情况下,用find。比[]直接访问的意思不一样,map[key]不返null
key不存在的话则创建一个pair并调用默认构造函数 map<CGuid, CLibItem>::iterator iterItem = m_world->m_library_sce ...
- 敏捷项目管理—Scrum框架总结
Scrum中的角色 Scrum Master——项目负责人.项目经理 保护团队不受外界干扰,是团队的领导和推进者,负责提升 Scrum 团队的工作效率,控制 Scrum 中的“检视和适应”周期过程.与 ...