ObjectDB Database Search

101-150 of 200 results

Puzzler: Not getting cascades on read from Spring context

objects correctly, but in the application running in Jetty with Spring, fetching is not cascading ... ;   -dh dhosek Don Hosek Fetching doesn't work by default for detached objects. Please read ... objects? -dh dhosek Don Hosek It would be better and more efficient, if possible, to arrange fetching of the relevant data before detachment. support Support

Multi threading on DMOs by lazy loading

It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne( fetch = FetchType.LAZY) EntityX fieldX; @OneToOne( fetch = FetchType.LAZY) EntityY fieldY; @ElementCollection ( fetch = FetchType.LAZY) List list; } We want to load the entity

Cast exception?

to database.entity.Player From just fetching a single result: TypedQuery query = em ... .Thread.run(Thread.java:722) So basically the query fetched the persistent fields and built a Player ... that there is no error on the fetching request. I could have written: Object player = query

List of Enum Values in an entity

accessed) are available. One way to solve the problem is to change the fetch policy of the field from LAZY to EAGER :     private @OneToMany( fetch =FetchType.EAGER) List flags; According ... make a difference for ObjectDB, but to remove this error / warning try: private @Basic( fetch =FetchType.EAGER) List flags; support Support

Changes in detach behaviour?

The last builds include fixes for some fetch issues so it is possible that ObjectDB behaves differently ... automatically. Loading of collections may require setting EAGER fetch explicitly ... ". If you use version 2.3.4 then the output is "username". I think lazy fetching of primitive fields is a bit

Broken @ManyToOne reference

public abstract class A { @Id @ManyToOne( fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional ... instances should be fetched eagerly in this case. Please follow the posting instructions and provide a test ... public abstract class ChildsSuper {   //  @Id   @ManyToOne( fetch = FetchType.EAGER

TreeSet and compareTo() issue

through a collection field in another class that uses eager fetch : @OneToMany( fetch = FetchType.EAGER ... valid:     @OneToMany( fetch = FetchType.EAGER, cascade=CascadeType.PERSIST

Does "error 522" (connect timed out) have something to do with restrictions despite license activation?

the license inside the server. By the way, I fetched the following message: Your activation code ... Lotti Solved, it was really because of the activation code I wasn't able to fetch from URL. Ieodaq Daniele Lotti  Solved, it was really because of the activation code I wasn't able to fetch from URL

LAZY @ManyToOne field functions as EAGER

, when it is marked as @ManyToOne( fetch =FetchType.LAZY) ?   package com.greensoft.objectdb.test ... ; @ManyToOne( fetch =FetchType.LAZY, cascade= CascadeType.ALL)         C ... ; @ManyToOne( fetch =FetchType.EAGER, cascade= CascadeType.ALL)         C

PostUpdate collection null

, the collection is populated. The collection is eagerly fetched . public class MyEntity {     @OneToMany( fetch =FetchType.EAGER)     private ArrayList myCollection = new ArrayList ... ;            @OneToMany( fetch =FetchType.EAGER

@ElementCollection of type enum

Hi! I have in an entity called User with the following field: @ElementCollection( fetch = FetchType ... ( fetch = FetchType.EAGER) private Set permissions; saves enum values as ordinal, not String ... ;@ElementCollection( fetch = FetchType.EAGER) containing enums should be order independent. Thanks. zmirc

Removing an entity throws exception

; @OneToOne(cascade=CascadeType.ALL, fetch =FetchType.EAGER,          ... (mappedBy = "customer", fetch = FetchType.LAZY) private List itemList; @OneToMany(mappedBy = "customer", fetch = FetchType.LAZY) private List otherItemList; ... getters and setters } Only address is filled

Criteria query error: Unexpected query token

Using JPA2, I can save entities now in JBoss, and also fetch them uniquely by id. However, if I try to fetch it by getting back all instances (e.g. findAll, I get the following error: org.jboss ... my eagerness to test I think I need to do an audit on all criteria queries. Works well. Fetched

Why are my Map entries not stored?

    private long id;     @OneToMany( fetch = FetchType.EAGER ... ;@ManyToOne( fetch = FetchType.EAGER)     private Ticket ticket = null;     ... the Explorer. itsme Martin Petzold I have now changed to and it is working: @OneToMany( fetch

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

;     @ManyToOne( fetch = FetchType.LAZY, cascade = CascadeType.ALL)    ... ; @OneToMany( fetch = FetchType.LAZY, mappedBy = "a", cascade = CascadeType.ALL)         List listA_mapped;         @OneToMany( fetch

Lazy loading does not work - crud takes long

Relationships. It should be load lazy but i dont know why the query fetch all the Data ... ; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy="project", fetch = FetchType.LAZY)   ... = CascadeType.ALL, orphanRemoval = true, mappedBy="project", fetch = FetchType.LAZY)    

Pre-detach loading: retrieval by navigation not working in if statement

selected operations (while "visiting" the loaded managed entity) to load and fetch desired values. In ... " Boolean value wrapper BooleanValue entity. This is @OneToOne with explicit LAZY fetch . - A BooleanValue ... ' which is a "deep" Float value wrapper FloatQuantity entity. This is @OneToOne with explicit LAZY fetch

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

; @ManyToOne( fetch =FetchType.LAZY) @MapsId("cont") private EContainer container; public EContainer ... () { return prnt; } } @EmbeddedId private ECompoundKeyMapSubItemId id; @ManyToOne( fetch =FetchType.LAZY ... String property; // Attributes which mark another non containment relationship @ManyToOne( fetch

Merge Issue: Attempt to reuse an existing primary key value

; static class A {         //@OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent")         @OneToMany( fetch ... ;      @ManyToOne( fetch = FetchType.LAZY, cascade = { CascadeType.ALL })  

Multiple Collection Fields not update correctly

  v2.8.8_2 I have an entity that has 2 collection fields: @OneToMany( fetch = FetchType.EAGER)      Collection position;      @OneToMany( fetch = FetchType.EAGER)      Collection rotation ;   Now if I persist them so the values are: position

Optimistic locking: prevent version increment on entity collection attribute

), added EAGER fetch to the collection no change. I have tried to persist the document first ... to add ManyToOne of the owning side (Readings), This should not make any difference. added EAGER fetch

ManyToMany Set is null

@GeneratedValue     private long id;     @ManyToMany( fetch = FetchType. EAGER , cascade ... {     @Id @GeneratedValue     private long id;     @ManyToMany( fetch

Does ObjectDB create one instance of each entity class on (web app) load ?

a (mostly) LAZY-only fetch policy across the system. Most of my EJB methods for querying are configurable ... than entity fetch graphs, too.       webel Dr Darren Kelly

Using of Second Level Cache

. When you retrieve a MyEntity1 its fields may be initialised as null / empty list, unless eager fetch is used. Anyway, when the MyEntity2 and MyEntity3 instances are needed they are fetched from the 2nd level cache if available. support Support

Does ObjectDB support lazy loading?

to @OneToMany( fetch =FetchType.EAGER), the properties can be read. It seems to me that ObjectDB doesn't ... A { @Id @GeneratedValue Long id; @OneToMany( fetch =FetchType.LAZY, cascade=CascadeType.ALL) List list

"Unexpected query expression" using CriteriaQuery FetchParent Interface

Using the fetch over Root attribute, the exception is: com.objectdb.o._PersistenceException: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o ... .class);   root. fetch ("PersonData"); //@OneToOne relationship   criteriaQuery.select(root

Is it possible to remove parent/child entities without refresh?

;   @OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent ... ; @Id   @GeneratedValue   private long id;   @ManyToOne( fetch = FetchType.LAZY

Merge with Parent/Child entities not possible

{   @Id   @GeneratedValue   private long id;   @OneToMany( fetch = FetchType.LAZY ... long id;   @ManyToOne( fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE

EntityManager.refresh takes a long time

siteAuth; private DialogAction currentDialogAction; @ManyToMany( fetch = FetchType.EAGER, cascade ... .PERSIST}) private Album mainAlbum; @OneToMany(mappedBy="person", fetch = FetchType.EAGER, cascade

@Column( name = "columnName") doesn't work

(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne( fetch

ObjectDB JPA 2.2 support ( java.util.stream.Stream )

Hi , in my database i want to fetch resultlist as big chunks.JPA 2.2 has new feature named Stream. So i can fetch all JPA queries with less memory. is there any news for objectdb ? Will you update objectdb for JPA 2.2 ?  eix128 Kadir BAŞOL We hope to support this feature soon

Problem witch CriteriaBuilder isMember(..)

class Container {     @ElementCollection( fetch = FetchType.EAGER)     List   testlist1 = new LinkedList ();     @ElementCollection( fetch = FetchType.EAGER)    

Cannot save or update entity on Spring App

("...").executeUpdate() 0; } } While the fetching methods work, there are two huge problems: the persist ... entityManagerFactoryBean; } Ieodaq Daniele Lotti While the fetching methods work, there are two huge

Some technical questions

an attribute of an object, but don't commit yet. Can another transaction fetch this object ... an attribute of an object, but don't commit yet. Can another transaction fetch this object without blocking

Possible issue with Spring JPA and Embedded

after detach. Your Spring JPA test passes if you set eager fetch for that collection:     @ElementCollection( fetch =FetchType.EAGER)     public List getRules() {  

Slow searching with two indexes

for a way to optimise this querying.  What I'm trying to fetch in my queries are a limited ... with the new index with no need for further data retrieval. Another option that can be checked is running the query with lazy fetch . support Support

Problem with merging / persisitng objects with @Embeddable field

Serializable, Convertable { (...) @ElementCollection( fetch = FetchType.EAGER) List productSets; @Embeddable public class ProductSet implements Serializable { @ManyToMany( fetch = FetchType.EAGER, cascade

Group by: list if no aggregate function is specified

, then fetching children list for each parent - not a good idea. Thank you. Vladiator Vlad Myachikov You may use JOIN FETCH for this purpose. support Support

Difference performance in ObjectDB Explorer and in java project

, but requires further round-trips to fetch related data. You can try it also from your program:     query.setHint("objectdb.result- fetch ", "LAZY"); support Support Thank you, is where any

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured embedable but is/are mapped by id like the two members below.  @Entity public class Customer { @MapsId @ManyToOne( fetch = FetchType.LAZY) private Merchant merchant; @MapsId @ManyToOne( fetch

JPA 2.0 Criteria API: (When) Fully supported ?

An excerpt from the website of a 3rd party vendor which tries to support JPA 2.0:   "The primary difference between JPA 1.0 and JPA 2.0 implementations is how data is fetched : the JPA 1.0 implementation creates a JPQL query string for fetching while the JPA 2.0 implementation uses Criteria

ArrayIndexOutOfBoundException

{ @OneToOne( fetch = FetchType.EAGER) private CacheableJobInfo ji; @OneToOne( fetch = FetchType.EAGER) private ... . The problem dissapeared when removing the @OneToOne( fetch = FetchType.EAGER) annotation. I am not

ClassCastException after upgrade to 2.3.5_03

, cascade=CascadeType.ALL, fetch =FetchType.EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch =FetchType.EAGER) private Map metadata; ... In this case the "payload

spuriously objectdb objects have null references

definitions are (for the null references above): ... @OneToMany( fetch =FetchType.LAZY) @Index public List actions = new ArrayList (); ... @OneToMany( fetch =FetchType.LAZY) @Index public List childNodes

ObjectDB 2.2.3

Added support of @ElementCollection  (for setting eager fetch of non entity collections, such as List ). Improved performance of eager fetch in queries. Added Maven build enhancement to the bundled examples. Fixed a schema evolution bug in renaming user types. Fixed a bug in handling schema

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany( fetch =FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ... Richard Szurgot There was a bug in eager fetch of collections and maps of simple values. Build 2.3.2

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType.LAZY) @JoinColumn(name = "project_id", unique=true ... ;     mappedBy="account", fetch = FetchType.LAZY)      

Navigation through lazy loading from Detached Objects

queries  and/or fetch joins that can preempty data that will be needed in the user interface. [Recommended reading JPA Pro 2: - p.164 to p.168 Working with Detached Entities - p.222 Fetch Joins

ObjectDB 2.2.4

objects in criteria queries . Improved Explorer performance by disabling EAGER fetch . Fixed critical ... in using JOIN FETCH with DISTINCT. Fixed Metamodel API's getTypeId  method to support single ID field .

ObjectDB 2.3.3

Improved compilation performance of OR queries with many elements. Fixed eager fetch of maps and nested embedded objects. Fixed a bug in removing a new flushed entity object before first commit ... on merge to be called after merging fields ( issue #551 ). Fixed eager fetch of collections