Home » Search

About persistence unit

141-150 of 200Refresh
Forum
8

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit ... .jdbc.password" value="admin"/>   persistence-unit> persistence> Spring xml ... EntityManagerFactory "entityManagerFactory", which is associated with the MySQL/Hibernate persistence unit
JPA Doc
8

getPersistenceUtil()

Static Method javax.persistence.Persistence PersistenceUtil getPersistenceUtil() Return the PersistenceUtil instance Returns: PersistenceUtil instance Since: JPA 2.0
JPA Doc
8

javax.persistence.Cacheable

javax.persistence Annotation Cacheable Target: Classes Specifies whether an entity should be cached if caching is enabled when the value of the persistence.xml caching element is ENABLE_SELECTIVE or DISABLE_SELECTIVE. The value of the Cacheable annotation is inherited by subclasses
JPA Doc
8

javax.persistence.DiscriminatorColumn

javax.persistence Annotation DiscriminatorColumn Target: Classes Specifies the discriminator column for the SINGLE_TABLE and JOINED Inheritance mapping strategies. The strategy and the discriminator ... to DiscriminatorType.STRING. Default value: javax.persistence.DiscriminatorType.STRING Since: JPA 1.0 int length
JPA Doc
8

javax.persistence.Embedded

javax.persistence Annotation Embedded Target: Fields (including property get methods) Specifies a persistent field or property of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable. The AttributeOverride, AttributeOverrides
JPA Doc
8

javax.persistence.EmbeddedId

javax.persistence Annotation EmbeddedId Target: Fields (including property get methods) Applied to a persistent field or property of an entity class or mapped superclass to denote a composite primary key that is an embeddable class. The embeddable class must be annotated as Embeddable
JPA Doc
8

javax.persistence.Entity

javax.persistence Annotation Entity Target: Classes Specifies that the class is an entity. This annotation is applied to the entity class. Since: JPA 1.0 Learn how to define and use entity classes in ... to the entity in queries. The name must not be a reserved literal in the Java Persistence query language. Default value: "" Since: JPA 1.0
JPA Doc
8

javax.persistence.Inheritance

javax.persistence Annotation Inheritance Target: Classes Defines the inheritance strategy to be used for an entity class hierarchy. It is specified on the entity class that is the root of the entity ... . Default value: javax.persistence.InheritanceType.SINGLE_TABLE Since: JPA 1.0
JPA Doc
8

javax.persistence.MapKeyEnumerated

javax.persistence Annotation MapKeyEnumerated Target: Fields (including property get methods) Specifies the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated ... type. (Optional) The type used in mapping a map key enum type. Default value: javax.persistence.EnumType.ORDINAL Since: JPA 2.0
JPA Doc
8

javax.persistence.MapKeyTemporal

javax.persistence Annotation MapKeyTemporal Target: Fields (including property get methods) This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar. It may only be specified for map keys of these types. The MapKeyTemporal annotation can be applied