Home » Search

About embeddable

11-20 of 141Refresh
Forum
28

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

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
26

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
26

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
26

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
26

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
24

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
19

Comparison in JPQL and Criteria API

(=, <>, ==, !=). Instances of user defined classes (entity classes and embeddable classes ... have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1 and e2 have exactly
Manual
19

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
19

JPA / JDO Class Enhancer

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