Module: DB

Defined in:
lib/ontomde-uml2-jpa/jpa.rb

Overview

Depending on whether you annotate fields or methods, the access type used by Hibernate will be field or property. The EJB3 spec requires that you declare annotations on the element type that will be accessed, i.e. the getter method if you use property access, the field if you use field access. Mixing EJB3 annotations in both fields and methods should be avoided. Hibernate will guess the access type from the position of @Id or @EmbeddedId.

NOT SUPPORTED:

  • Qualifiers are not supported.

  • multi-valued attributes (JPA limitation)

  • Clashing variables with different types in same type hierarchy.

X and Y classes derives from Z. X has attribute c of type int and Y has attribute c of type String.

Constant Summary collapse

EntityManager =
"javax.persistence.EntityManager"
EntityManagerFactory =
"javax.persistence.EntityManagerFactory"
EntityGenericInterface =
"xmda.jpa.XmdaEntity"
EntityInterface =
"#{EntityGenericInterface}<Long>"