About embeddable

11-20 of 147Refresh
Forum
24

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
Manual
23

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped ... and inverse fields) can be used in both entity classes and embeddable classes. However, the last ... is embeddable may optionally be marked with the @Embedded annotation, requiring ObjectDB to verify that the type
Forum
23

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
Forum
23

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap
Forum
23

LifeCycle Event with Embeddable classes

for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id ... Timestamp(System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType ... . ObjectArts   JPA lifecycle events are not applicable for embeddable classes. You can set an event
Forum
23

Problem with merging / persisitng objects with @Embeddable field

with field that contains @Embeddable object. Please check attached exception. Relation between ... ; @Embeddable public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType.EAGER ... should refer to an entity class rather than to an embeddable class. Yes, you are right. Model
Result
20

How to upgrade from ObjectDB 1.0?

ObjectDB 1.0). In ObjectDB 2.0 classes can be either persistence capable (entity classes) or embeddable. To use embedded objects you must declare classes as embeddable (rather than the reference fields as in ObjectDB 1.0), either by annotation (@Embeddable) or by external XML metadata (
Manual
16

Index Definition

Employee { String firstName; String lastName; Address address; : } @Embeddable ... when using embeddable classes as fields of embedded object are stored as part of the containing entity
Manual
16

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit ... Classes JPA requires registration of all the user defined persistable classes (entity classes, embeddable
Manual
16

JPA / JDO Class Enhancer

(entity classes, embeddable classes and mapped superclasses), and is usually optional ... .g. @Entity, @Embeddable) are enhanced by the Java Enhancer Agent. Therefore, when using