ObjectDB Database Search

51-100 of 176 results

Field not persisted in abstract class with two level of nesting

; } } TZ1 package BUG2; import javax.persistence. Embeddable ; @ Embeddable public class TZ1  ... javax.persistence. Embeddable ; @ Embeddable abstract class AS extends ATT {     ... . Embeddable ; @ Embeddable public abstract class ATT    implements Serializable{    

jakarta.persistence.MapKeyClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyClass Implemented Interfaces: Annotation Target: Method, Field Specifies the type of the map key for associations of type Map . The map key can be a basic type, an embeddable class, or an entity. If the map is specified using Java

jakarta.persistence.MapKeyJoinColumn

of the referencing relationship property or field of the referencing entity or embeddable class

jakarta.persistence.MapsId

its composite primary key: @ Embeddable public class DependentId { String name; long empid; // corresponds

jakarta.persistence.Entity

of embeddable type has nested mappings to multiple columns in one of the tables mapped by the entity

jakarta.persistence.metamodel.Attribute.PersistentAttributeType

Embeddable class attribute Since: Jakarta Persistence (JPA) 1.0 MANY_TO_MANY Many-to-many association

jakarta.persistence.metamodel.ManagedType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.ManagedType Type Parameters: - The represented type. Super Interfaces: Type Instances of the type ManagedType represent entity, mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods

jakarta.persistence.metamodel.StaticMetamodel

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.metamodel.StaticMetamodel Implemented Interfaces: Annotation Target: Type The StaticMetamodel annotation specifies that the class is a metamodel class that represents the entity, mapped superclass, or embeddable class designated by

jakarta.persistence.Transient

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Transient Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass, or embeddable class. Example

jakarta.persistence.criteria.Join

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Join Type Parameters: - the source type of the join - the target type of the join Super Interfaces: From , Path , FetchParent , Expression , Selection , TupleElement A join to an entity, embeddable , or basic type. Since: Jakarta

jakarta.persistence.Access

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Access Implemented Interfaces: Annotation Target: Type, Method, Field Used to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or to a specific attribute of such a class. Since: Jakarta

jakarta.persistence.AccessType

superclass, or embeddable class, or to a specific attribute of such a class. See Also: Access Since: Jakarta

jakarta.persistence.SecondaryTable

may not be applied to a class annotated MappedSuperclass or Embeddable . Since: Jakarta Persistence

jakarta.persistence.Table

MappedSuperclass or Embeddable . Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name

jakarta.persistence.OrderColumn

that is to be ordered. The order column is not visible as part of the state of the entity or embeddable class

jakarta.persistence.OneToMany

within an embeddable class contained within an entity class to specify a relationship to a collection of entities

Schema update: package, class and field

for embeddable classes. Do you have a solution for embeddable classes? btc_es BTC EmbeddedSystems There should not be a difference between entity and embeddable classes regarding schema changes. Maybe you are trying an embeddable class which is also an inner class (and that makes a difference in

How to apply Unique constraints on embedded fields?

; } @ Embeddable public class B { private C c; } @ Embeddable public class C { private HashSet values; }   ... setB2(B2 b2) { this.b2 = b2; } } @ Embeddable public class B1 { private C c; public B1() { } public C getC() { return c; } public void setC(C c) { this.c = c; } @ Embeddable public static class C

Clarification on free license restrictions

use unrestricted numbers of embeddable classes?  Do embeddable classes count as ... pricecap72 Craig A Price Embeddable classes are count as entity classes but other serializable classes are unlimited. Therefore, even though embeddable classes are preferred - you may use

TemporalType injection with Calendar using JPA

;Is there something obvious here that I am failing to see?   @ Embeddable @Access(AccessType.PROPERTY ... on it) The following documentation is misleading Embeddable Classes (and Simple Java Data Types) , as it clearly states that java.util.Calendar is a persistable type for a field in a Embeddable class

com.objectdb.o.UserException: Ambiguous entity name

I get the com.objectdb.o.UserException: Ambiguous entity name A former embeddable class seems to be similar to a new entity class. However, I removed the embeddable class from all of my classes. Still I get this error and in the explorer I can find an entry for this embeddable class

Should derived fields of an EmbeddedId be manually maintained by app code?

.persistence.Basic; import javax.persistence. Embeddable ; import javax.persistence.EmbeddedId; import javax ... ; @Entity public class ECompoundKeyMapItem { @ Embeddable public static class ECompoundKeyMapItemId ... javax.persistence. Embeddable ; import javax.persistence.EmbeddedId; import javax.persistence.Entity

jakarta.persistence.PersistenceConfiguration.managedClass(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration managedClass (    Class managedClass ) Add a managed class (an Entity , Embeddable , MappedSuperclass , or Converter ) to the configuration. Parameters: managedClass - the managed

jakarta.persistence.AttributeOverride.column

Jakarta Persistence (JPA) Method in jakarta.persistence.AttributeOverride Column column (Required) The column that is being mapped to the persistent attribute. The mapping type will remain the same as is defined in the embeddable class or mapped superclass. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Metamodel.managedType(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel ManagedType managedType (    Class cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns

jakarta.persistence.metamodel.Attribute.PersistentAttributeType.EMBEDDED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.Attribute.PersistentAttributeType EMBEDDED Embeddable class attribute Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.MapKeyJoinColumn.name

of the referencing relationship property or field of the referencing entity or embeddable class; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinColumn.table

mapping using a foreign key mapping strategy, the name of the table of the source entity or embeddable

jakarta.persistence.ElementCollection.targetClass

Jakarta Persistence (JPA) Method in jakarta.persistence.ElementCollection Class targetClass (Optional) The basic or embeddable class that is the element type of the collection. This element is optional only if the collection field or property is defined using Java generics, and must be specified

jakarta.persistence.PersistenceConfiguration.managedClasses()

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration List managedClasses() The configured managed classes, that is, a list of classes annotated Entity , Embeddable , MappedSuperclass , or Converter . Returns: all configured managed classes. Since: Jakarta Persistence (JPA) 1.0

Explorer in 2.3

too). But suppose I want to set the value of a field of type 'A' where A is an @Entity or @ Embeddable . I ... the result of a JPQL query to set a value of an @Entity or @ Embeddable field. ie. I want to set the value of a field of type 'A' where A is an @Entity or @ Embeddable . So I enter a JPQL  query

How do I achieve a Deep Fetch using JOIN FETCH?

I have an Entity type which is contains a collection of Embeddable objects, which in turn themselves contain a collection of Embeddable objects: @ Embeddable class A { String val; }; @ Embeddable class B { List aList; }; @Entity class C { @Id long id; List bList; };   Usually I'm content

Dirty checking

Moshal surprisingly, it looks like embeddable classes can't register change listeners? ie: @ Embeddable @EntityListeners (Listener.class) So, having to go and make all @ Embeddables into @Entities ... contained by other Entities (i.e: that were previously Embeddables ).   dmoshal David Moshal

Query to find object from element of a contained collection

entity or embeddable classes are supported by ObjectDB, the recommendation is to avoid using them when possible due to their limitations. Try to define  OrderItemData as en embeddable class . In ... , indeed the few classes that were not entity nor embeddable have been set as embeddable since then as i had issues

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

.persistence. Embeddable ; import javax.persistence.Embedded; import javax.persistence.EmbeddedId; import ... + "]";         }     }     @ Embeddable   ... ; em.getTransaction().commit(); or by specifying CascadeType.PERSIST: @ Embeddable public static

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @ Embeddable public class ... (entity classes and embeddable classes) can be compared by using the equality operators ... . For embeddable objects, e1 = e2 if e1 and e2 have exactly the same content.   though it is exactly what I'm

Missing (null) elements in eager loaded references

I have the following problem: Setup: Two hierachical Entities (Element, DataElement), which contain an ElementCollection of Embeddables (Costs). The Embeddable from the ElementCollection ... : @ Embeddable public class Cost { @OneToMany (fetch = FetchType. EAGER ) private List dataElements ; @Basic

can't get HashMap out of the database

embeddable objects. I've modified the test code  to be a bit closer to the actual code and I ... object is: @ Embeddable public class Guest implements Serializable { private String name; private Date ... . Please advise if nested embeddable objects are supported. Kind regards, Natalia. natmaclin Natalia Levine

EmbeddedId with Generated field value

********* @Entity public class A { @EmbeddedId private CompositePK pk; } @ Embeddable public class CompositePK ... only for entity objects (and not for embeddable classes). Consider using: @IdClass(ZoneId.class ... has ZoneId class (or CompositePK class) to be declared as @ Embeddable static class with annotated fields? I

collection of embedded objects

of @ Embeddable objects? ie. Suppose I want to query: SELECT count(a) FROM A a WHERE a.setOfB.value ... whose type is a user defined embeddable class or a collection of user defined embeddable classes

Problem witch CriteriaBuilder isMember(..)

misunderstood some essentials I have defined an entity class and an embeddable class like this @Entity ... ;   testobject = new Testclass(0,0); } @ Embeddable class Testclass {     long uid ... .6.4_09 the isMember  method works fine with embeddable objects. But in 2.6.5_02 and 2.6.5_03

how explorer queries work

ObjectDB knows to build missing entity and embeddable classes, based on the schema that is internally ... the mismatching. Try to avoid using user defined serializable non entity / embeddable classes ( which are not recommended anyway ) and use embeddable classes instead. This way ObjectDB will be able to complete your missing classes. support Support

Exception when querying Map property with @embedded & Enhancer enabled

MyEntity2 Thanks   import java.util.LinkedHashMap; import javax.persistence. Embeddable ; import javax ... ;  return "MyEntity2 [name=" + name + ", values=" + values + "]";   } } @ Embeddable public ... that demonstrates an unexpected limitation of enhanced embeddable classes in queries. Please try

Changing existing objects from Entity to Embedded

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 ( in package.jdo ). support Support

Problem with entities detection

. The only difference is an @ Embeddable annotion in a class, and an @Embedded annotation in another. The problem ... .Direccion (the @ Embeddable ) to the same package of centroController, it just works, and locates entities ... asignaturasAlumnoList; And this is the Embedded class: @ Embeddable public class Direccion implements Serializable

Unexpected exception (Error 990) com.objectdb.o.InternalException

;  // Persist an entity with an embeddable :         em ... ;  // Keep a strong reference to the embeddable but free the entity:         MyEmbeddable embeddable = em.find(MyEntity.class, 1). embeddable ;    

Issues with JDO Casting & Full Qualified Names

. Embeddable ; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax ... HashMap (); } @ Embeddable public static class EmbeddedBase {   String base = "TEST"; } @ Embeddable public static class EmbeddedA extends EmbeddedBase {   String name = "Alex"; } @ Embeddable

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! We have an two entities, the first one is something like: @ Embeddable class TestEmbed ... only with an embeddable entity embedded within another embeddable entity like:   @ Embeddable class Embed_A {} @ Embeddable class Embed_B { private Embed_A embedA; .. } @Entity class MyEntity { private Embed_B

Best practise loading big data

of table rows which is a list of embeddable entities holding the final (String) value together with just ... ( fetch = LAZY ) ArrayList values; } @ Embeddable class MyValue { @Basic boolean flag; @Basic String ... ; } @Entity { class MyStep { @ElementCollection ( fetch = LAZY ) ArrayList values; } @ Embeddable class

Inverse OneToMany Mapping and EmbeddedId

.persistence . Embeddable ; import javax.persistence . EmbeddedId ; import javax.persistence . Entity ... + "]" ;          }      }      @ Embeddable ... .14G/1.25G main PT4M49.26S -0.58G/1.29G   EmbeddedId: @ Embeddable public class ValueId {