ObjectDB Database Search

101-150 of 200 results

Possible issue with LAZY Loading

and 2.4.3_01 the db is always returning everything, including the data marked as Fetch .LAZY.  I ... an open EntityManager, but it is fetched lazily when needed. You do see a difference (in addition ... data will not be available and will not be fetched either. support Support Ok, so then I believe Lazy

EM.find() is suddenly slower

.FIELD) @Column (name = "uid") private String uid; @OneToOne ( fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany ( fetch ... fetch that affects the performance of further operations. Could you please check build 2.8.6_06

can't get HashMap out of the database

annotating the map with @OneToMany( fetch =FetchType.EAGER). Outside the DAO method only fields ... signingDate;     @OneToMany( fetch =FetchType.EAGER, cascade=CascadeType ... class GuestHolder { // Persistent Fields: @Id @GeneratedValue Long id; @OneToMany( fetch =FetchType

Annotate a Map field with @ElementCollection or @Basic

is faster at runtime. It could be due to the different default fetch value ( LAZY for ElementCollection , EAGER for Basic ). You may try using an @ElementCollection( fetch =FetchType.EAGER) and see if it is fast as @Basic support Support I tested it already with @ElementCollection( fetch =FetchType

Entity with java.util.Date column gives ClassCastException in BIRT

. fetch (ResultSet.java:189) at org.eclipse.birt.data.engine.executor.cache.OdiAdapter. fetch (OdiAdapter.java:214) at org.eclipse.birt.data.engine.executor.cache.RowResultSet. fetch (RowResultSet.java:145 ... .engine.executor.transform.SimpleResultSet$RowResultSetWithResultSetScope. fetch (SimpleResultSet.java

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() {  

@FetchGroup in JPA similar to JDO

JDO. It works like this. First you specify attributes to fetch from database: @FetchGroup(name ... query = em.createQuery("SELECT e FROM Entity e", Entity.class); query.setHint(QueryHints. FETCH _GROUP ... ("select e.firstName, e.lastName FROM Entity e", Tuple.class); But with fetch group you don't

Tracking changes to new collections (in enhancement mode) after flush

= "uid") private String uid; @OneToOne ( fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany ( fetch = FetchType.EAGER, cascade ... uid; @OneToOne ( fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private

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 .