CHAPTER 6 n MAPPING WITH ANNOTATIONS n MAPPING (Web server info)

CHAPTER 6 n MAPPING WITH ANNOTATIONS n MAPPING WITH ANNOTATIONS 99 Attribute Name PersistenceContext/ PersistenceContexts PersistenceUnit/ PersistenceUnits PostLoad PostPersist PostRemove PostUpdate PrePersist PreRemove PreUpdate PrimaryKeyJoinColumn/ PrimaryKeyJoinColumns QueryHint SecondaryTable/ SecondaryTables SequenceGenerator SqlResultSetMapping Table T TableGenerator Temporal Transient UniqueConstraint Version Target T, M, and F T, M, and F M M M M M M M T, M, and F Pm T Pk, T, M, and F Pk and T Pk, T, M, and F Pk, T, M, and F M and F M and F Pm M and F Purpose For use with @EntityManager; marks a field or property as representing the EntityManager to be injected by the container. For use with @EntityManager; marks a field or property as representing the EntityManagerFactory to be injected by the container. Marks a method for invocation after performing a load operation on the entity. Marks a method for invocation after performing a persist operation on the entity. Marks a method for invocation after performing a remove operation on the entity. Marks a method for invocation after performing an update operation on the entity. Marks a method for invocation prior to performing a persist operation on the entity. Marks a method for invocation prior to performing a remove operation on the entity. Marks a method for invocation prior to performing an update operation on the entity. Allows the columns joining a secondary table to a primary table to be specified. Allows implementation-specific hints to be provided as a parameter of named queries and named native queries. Allows an entity s basic fields and properties to be persisted to more than one table. Allows a named primary key generator to be defined for use by one or more entities. Allows an entity to be mapped as if it were a named native query (i.e., so that it can be retrieved as a conventional JDBC ResultSet). Allows the default details of an entity s primary table to be overridden. Overrides the default properties of the table used to generate primary keys when the table generation strategy of the generated value annotation is used on the primary key field or property (the field or property marked with the @Id annotation). Specifies the behavior of Date and Calendar fields or properties (if omitted, such fields will be treated as TIMESTAMP values). Allows a field or property to be marked so that it will not be persisted. Enforces a unique constraint at schema generation time as a parameter of @Table. Marks the field or property serving as the optimistic lock value of the entity. Key to the Target column: Pk = package, T = type, M = method, F = field, Pm = parameter
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services

Leave a Reply