Internal Website Search

51-100 of 141 results

Listing large number of complicated objects with paging.

). The problem is probably with the extensive EAGER setting in Product , and particularly with eager fetch ... Support Yes, I do remember that there is a problem with extensive EAGER use and mapped by collections

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

ManyToMany Set is null

@GeneratedValue     private long id;     @ManyToMany(fetch = FetchType. EAGER , cascade ... = FetchType. EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy

Memory use in OneToMany relationships

are not loaded yet. You can change this behaviour by specifying EAGER load (the default for collections ... , but the JPA rules remain: With EAGER you know that the referenced objects are loaded immediately

Does ObjectDB support lazy loading?

to @OneToMany(fetch=FetchType. EAGER ), the properties can be read. It seems to me that ObjectDB doesn't support lazy loading, am I right?   psfung Samuel Fung ObjectDB does support both lazy and eager

How to Remove records from many to many relationship tables in JPA

public class TransportationEvent { ... @ManyToMany(fetch = FetchType. EAGER , cascade = CascadeType ... .annotations.CascadeType.DELETE_ORPHAN) and i applied that as @ManyToMany(fetch = FetchType. EAGER , cascade

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType. EAGER , cascade=CascadeType.ALL, optional ... public abstract class ChildsSuper {   //  @Id   @ManyToOne(fetch = FetchType. EAGER

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

2.4.7 Fetch

am noticing in 2.4.7 that 'fetch' cannot be added to objectdb.conf so, wondering how to enable ' eager ' fetching of collections ?   Dave   dmoshal David Moshal The question is unclear. Is it something new or different in version 2.4.7? Eager fetching has always been set by annotations or

Problem with @Basic(fetch = FetchType.LAZY)

De Clercq LAZY in JPA (unlike EAGER ) is merely a hint, which JPA implementations may ignore. ObjectDB always loads basic fields eagerly, regardless of the LAZY / EAGER setting. If you have very large

Problem witch CriteriaBuilder isMember(..)

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

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

How to use JOIN FETCH?

(String[] args) throws Exception {   File file = new File(" eager .odb");   if (file.exists ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory(" eager .odb");   EntityManager em = emf

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

PostUpdate collection null

; @OneToMany(fetch=FetchType. EAGER )     private ArrayList myCollection = new ArrayList ... ;            @OneToMany(fetch=FetchType. EAGER

Database Inconsistency or corruption

(cascade=javax.persistence.CascadeType.ALL, fetch =   javax.persistence.FetchType. EAGER ... ;    fetch=javax.persistence.FetchType. EAGER )    @javax.persistence.JoinColumn

GWT RPC is throwing serialization exception when I have object db date value

will alway be empty after detaching. @OneToMany(fetch = FetchType. EAGER , cascade = CascadeType ... detachment are unavailable after detachment. So you have to load the collection, and using EAGER

OEM enhancing

Hello, I have question regarding OEM licence enhancement. @OneToMany(fetch = FetchType. EAGER , cascade = CascadeType.ALL) private SomeClass[] props; @OneToMany(fetch = FetchType. EAGER , cascade = CascadeType.ALL) private Map vars = new TreeMap (); Are these classes(SomeClass, SomeClass2), when not

How to query for list of lists ?

. EAGER ) protected List filterDescription; (...) } Whene i try to run this code I get error : Caused by ... ") @ElementCollection(fetch = FetchType. EAGER ) private List reviewSnippets; ...   Finally

Issue with orphanRemoval and multiple EntityManagers

;   @OneToMany(cascade=CascadeType.ALL, fetch=FetchType. EAGER , orphanRemoval=true)  

LifeCycle Event with Embeddable classes

= FetchType. EAGER ) private List barList; @Temporal(TemporalType.TIMESTAMP) private Timestamp

Double persist of Entity field with Cascade.ALL

bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType. EAGER ) private List chapters; The Chapter

problem with lazy loading - unittest project attached

, one entity with 2 related entities. if i use EAGER the test pass, if not the related entity list is empty

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

, rather than relying on one-size-fits-all EAGER . This pre-detach loader approach is even more flexible

find() cost unreasonable time!

="parent",fetch=FetchType. EAGER ) protected List Sons; function of checking: private static void

Using of Second Level Cache

. When you retrieve a MyEntity1 its fields may be initialised as null / empty list, unless eager fetch is used

TemporalType injection with Calendar using JPA

.persistence.FetchType. EAGER ) public List getPoints() { return points; }   public void setPoints

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany(mappedBy="invoice", fetch=FetchType. EAGER ,              orphanRemoval=true, cascade=CascadeType

Changes in detach behaviour?

automatically. Loading of collections may require setting EAGER fetch explicitly

Possible issue with LAZY Loading

(unlike EAGER ) is considered in JPA as a hint and in some cases data is fetched eagerly regardless

How do I achieve a Deep Fetch using JOIN FETCH?

of eager fetch in JPQL as follows: SELECT c FROM C JOIN FETCH c.bList WHERE c.id=:id But when I attempt

Does aggregate function "greatest" work on entity objects?

= ChatAttachment.class, fetch = FetchType. EAGER ) private List attachments; private boolean isSystem; private

Global way to set Lazy-loading fetch functionality for all the fields

if neither objectdb nor JPA offers it). ouba64 Ouba Mahamane Lazy / Eager can only be set locally

Composite indexes

rating in scale from 1.0 to 10.0 @ElementCollection(fetch = FetchType. EAGER ) List filterDescription

Query only works correctly when debug printing results

.com/forum/2032   support Support Setting the fetch type of the List to eager via annotation solved the problem. Thanks. Sweetwater Marc

Connection is closed (error 526)

Lai Yang Maybe you are trying to load the entire tree into memory. Try replacing EAGER with LAZY

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

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

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

ObjectDB 2.7.6

for "Failed to read from file" error ( issue #2322 ). Added an option for eager background purge of weak ... . Improved eager fetch mechanism to avoid unnecessary repeated operations. Improved performance

NullPointerException on TreeSet load

fetch type to EAGER :     @Entity     public static class MyEntity {         @OneToMany(cascade=CascadeType.PERSIST, fetch = FetchType. EAGER )  

ObjectDB 2.8.6_06

Improved performance following a large eager fetch ( issue #2694 ).

ObjectDB 2.4.5

Added support of lazy loading of mapped by (inverse) singular relationships ( issue #768 ). Added support for using ObjectDB with TomEE / OpenEJB . Improved loading of eager mapped by (inverse) relationships ( issue #769 ). Improved performance of database file extending. Fixed a bug in ignoring

Enum fields are set to null and embeddable enum class does not show in explorer

(fetch = FetchType. EAGER ) @Enumerated(EnumType. STRING ) private List roles = null ; itsme Martin

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

; } @OneToMany(cascade=javax.persistence.CascadeType.ALL,fetch=javax.persistence.FetchType. EAGER

com.objectdb.o.InternalException: null

= FetchType. EAGER )     private List insurances = new ArrayList ();     public

Issue with UPPER ?

case. Attached you can also find my database for testing hope that helps, we'd need an eager fix

ObjectDB 2.2.7

applying nested eager fetch when enhancement is disabled. Fixed the "Annotated methods must follow the JavaBeans naming convention" exception ( issue #325 ).

ObjectDB 2.3.5

Added support of DATE(...) and TIME(...) methods in queries. Added new Explorer and Server exe (for Windows 7 and 64 bits). Fixed handling a Calendar parameter value in criteria queries. Fixed using type operator and literals in client server queries ( issue #605 ). Fixed eager fetch issues. Fixed

Unexpected exception (Error 990) on find

String key;     @ElementCollection(fetch=FetchType. EAGER )