About embeddable

1-10 of 148Refresh
JPA Doc
114

javax.persistence.Embeddable

javax.persistence Annotation Embeddable Target: Classes Defines a class whose instances are stored ... that the Transient annotation may be used to designate the non-persistent state of an embeddable class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal(DATE) java.util
JPA Doc
113

embeddable(cls)

Method javax.persistence.metamodel.Metamodel EmbeddableType embeddable(   Class cls ) Return the metamodel embeddable type representing the embeddable class. Parameters: cls - the type of the represented embeddable class Returns: the metamodel embeddable type Throws: IllegalArgumentException - if not an embeddable class Since: JPA 2.0
JPA Doc
109

Type.PersistenceType.EMBEDDABLE

Enum Constant javax.persistence.metamodel.Type.PersistenceType EMBEDDABLE Embeddable class Since: JPA 2.0
Manual
38

JPA Persistable Types

, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String ... , OpenJPA, JPOX, DataNucleus, etc.). Embeddable Classes Embeddable classes are user defined persistable classes that function as value types. As with other non entity types, instances of an embeddable
Forum
38

Does ObjectDB support @Parent for @Embeddable reference to parent?

AFAIK JPA does not directly support an @Embeddable referencing the parent in which it is @Embedded ... public class Person { @Embeddable public Address address; ... } @Embeddable public class ... ; this.profile.setUser(this); } // ... }   @Embeddable class Profile implements Serializable
Forum
38

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity ...     Map cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in
Issue
38

probable error in text of manual about embeddable classes

at http://www.objectdb.com/java/jpa/entity/types website in "Embeddable Classes" section ... . The complete paragraph: "Instances of embeddable classes are always embedded in other entity ... . Therefore, using embeddable classes can save space in the database and improve efficiency. Embeddable
Forum
38

Unexpected internal exception during set field of an Embeddable to null

of SignalValueImpl objects (Embeddables). Partly as in the stack trace an Embeddable contain another Embeddable. It seems like that we can't reproduce the problem in smaller use cases with less objects ... implementation of SignalValueImpl import javax.persistence.Basic; import javax.persistence.Embeddable
Forum
37

Cascade type annotaion on an embeddable type

*/ private Location location;     private int phoneNumber; } @Embeddable public class Location ... is an instance of an embeddable class. The embeddable class must be annotated as Embeddable." So the Location ... CascadeType affects embeddable objects? No need to specify the Embedded annotation in this case
Forum
36

Does ObjectDB support inheritance of @Embeddable classes?

Does ObjectDB support inheritance of one @Embeddable into another @Embeddable ? Yes. ObjectDB supports hierarchy of embeddable classes. webel