ObjectDB Database Search

101-150 of 184 results

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

Weird behaviour with enhanced classes and embedded entities

; import javax.persistence. Embeddable ; import javax.persistence.Entity; import javax.persistence ... ;    return embeddedEntities;     }   }     @ Embeddable ... ; }   }     @ Embeddable   static class MySecondEmbeddedEntity {   

LEFT JOIN FETCH over empty embedded collection returns no results

my original post: @ Embeddable class A { String val; };   @ Embeddable class B { List aList; }; @Entity

Join query problem with new statetment

an embeddable class to entity class, which results in having a class with mixed objects in the database - the old embeddable objects and the new entity objects. For more precise diagnosis - please post

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id

Performance in SELECT statement

;private State state;     ... getter/setters ... } @ Embeddable public class ... definition is invalid. You cannot define an index directly on a field of embeddable class. Define a path

Query on Embedded Primary Key?

; import java.util.List; import javax.persistence. Embeddable ; import javax.persistence.EmbeddedId ... ;  }             @ Embeddable public static class

Some details about db behavior

me with this please link them. Regards vachagan Vachagan If A is an entity class (and not an embeddable ... ), you should see an A instance in the database. If A is an embeddable class the content of A will be persisted as

select query for a HashMap field of an entity.

I have the following entity. I need the all the MyEntitiy whose MyEntity. Embeddable .PropMap.Key = someValue. Can anybody please help me to get this what should be the query. @Entity class MyEntity { @ Embeddable class MyEmbeddable { private HashMap PropMap; } }   Thank you. Manoj Manoj Kumar

A few questions on object database design

everything about the player as embeddable classes. However, my colleague questions about this structure ... of your application. Switching between entity classes and embeddable classes is easy

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

your model  PersonalData in defined as an embeddable class, and that may cause data duplication ... duplication consider using Entity instead of Embeddable for this type. support Support

Searching lists within objects

= new ArrayList (); } @ Embeddable class Attribute {     private AttributeType type ... ), so you can build new embeddable objects for the search. However, I am not sure if indexes

Exception after update of indices of Entity class

; private Collection relations = new LinkedHashSet ();     ... } @ Embeddable public ... ; private Event recurringEvent = null;     ... } @ Embeddable public abstract

Suggestion for improving the examples

: Take the ridiculously complicated concept of @ Embeddable class e.g Address  etc... Placed in ... to keep the examples as simple as possible and when embeddable classes are introduced we prefer to focus on that topic

Documentation problem - license does not match implementation

and embeddable combined.  I will now probably have to drop ObjectDB in favor of some other JPA provider. kjkrum Kevin It was fixed and you should be able to use version 2.4.3 with 10 entity classes + embeddable classes. support Support

Multi part paths in a composite index must have the same length

; The SafeLong class is a very simple wrapper of a long -  @ Embeddable public class SafeLong ... ;   @ Embeddable     public static class SafeLong {      

Issue with Casting / Joins

Hi I can't seem to find my way out of this. Basically what I have is something like: @ Embeddable public class EmbeddedBase { ... } @ Embeddable public class EmbeddedA extends EmbeddedBase { private String name; getName()... } @Entity public class MyEntity { private Map embeddeds = new

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

.Instant; import java.util.List; import java.util.TreeMap; import javax.persistence. Embeddable ; import ... String toString() { return "X [id=" + id + "]"; } } @ Embeddable public static class XId { public int

Storing a tree of data (depth=3)

@Entity and @ Embeddable ) and a roleName (String) There are other data like list of directors, list ... fullName; } @ Embeddable @Data @NoArgsConstructor @RequiredArgsConstructor @Builder public class Role

Is named-query supported in orm.xml

.sun.com/xml/ns/persistence/orm":entity, "http://java.sun.com/xml/ns/persistence/orm": embeddable ... , embeddable , etc.) definition. Named queries can also be defined in the XML of a specific entity

Navigation through Path to evaluate collection

and the related embeddable class. Thanks public synchronized List getList(String key){     ... List apiId; } @ Embeddable public class ApiIdData_ implements Serializable {      

Potential memory leak

of one simple entity class (Person) and one embeddable class (AuditData), which is referenced by the entity ... threads seem to be created - one for the entity, one for the embeddable . The usecase may be a bit

Nested Collection Query

the internal collection in a user defined entity or embeddable class. support Support

Spatial Support

Will support for spatial objects (com.vividsolutions.jts.geom.Point for instance) be added in the near future?    Thanks nhoefer Nicholas Hoefer No, but you may still be able to persist spatial objects as ordinary entity / embeddable objects. Possibly even instances of that specific

StackOverflowError after commit

, some of our Entity classes were annotated with @ Embeddable instead of @Entity the objectdb error

Cascading makeTransient

.temp.detach- embeddable ", "true"); Then embedded objects are expected to be disconnected when owner

New to Product & Having An Issue

.Domain; ...imports.... @ Embeddable @Access(AccessType.PROPERTY) public class DomainId implements

@ElementCollection query returning extra result per element in collection

is defined as entity rather than as embeddable . It may help understanding the difference between

Performance issue in a query due to compareTo calls

could be valid if TCStep would be defined as @ Embeddable rather than as @ Entity (this may possibly improve

embedded objects marked final not persisted.

Discovered that embedded objects marked final are not persisted. I'm not exactly sure why that should the case. Is this a bug?     dmoshal David Moshal Final fields are treated as transient regardless of their type. If you mean that declaring the embeddable class as transient causes

Embedded in JDO metadata not working in objectDB 2.x ?

the class as entity again (just for the query) and then back to embeddable . Alternatively, probably

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

;         em.getMetamodel(). embeddable (FileNameDTO.class);   

persistence.xml classes not respected by ObjectDB

Hi! I have the following persistence.xml. The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each

How to use regular expressions in Criteria Builder

; @ Embeddable @Data @AllArgsConstructor @NoArgsConstructor public class TempPhysicalPartDetails { String

Upgrade to 2.4.1_02

Hi there, The upgrade to 2.4.1_02 fixed the initial problem, however there still seems to be an issue. To me it appears that Embeddable might be being lazy loaded, but I cannot be sure. I have attached a testcase demonstrating this issue. Its failing on the merge. Thanks P. pedwards Paul Edwards

Error reading UTF string (Serialized Objects in Explorer)

). Using serializable types is not recommended ( embeddable classes should be used instead) and is not ... all your classes. But if Money is serializable and changing it to embeddable is possible

NullPointerException when using multithreading

private String secondId; @OneToOne(cascade=CascadeType.ALL) private HashMap myMap; } @ Embeddable public class EmbeddableA { @OneToOne(cascade=CascadeType.ALL) private HashMap myMap; } @ Embeddable

Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9())

(the type is not an Entity, but an Embeddable ). Could that be the cause for this issue ... Embeddable classes should also be enhanced. The issue might be related to these classes. Unfortunately

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Book { @EmbeddedId BookId id; } @ Embeddable Class BookId { Integer bookIdCountry; ECountry country ... ; @ Embeddable     public static class MyEntityId {        

References to objects of missing obsolete entity classes

the database. It is an Embeddable and was not removed properly. We used to have an entity called ... ? We can also see that there are a lot of other old entities (potentially these are also Embeddables ) that cause

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

; } }   And its embedded primary key @ Embeddable @Access(AccessType.PROPERTY) public class

ObjectDB 2.6.5

in querying enhanced embeddable classes. Fixed server crash on exceeding maximum number

Lazy retrieval by access not working correctly

private LocalizedValues names; ... } @ Embeddable public class LocalizedValues implements Serializable