ObjectDB Database Search

51-100 of 152 results

Annotate a Map field with @ElementCollection or @Basic

;ElementCollection , EAGER for Basic ). You may try using an @ElementCollection(fetch=FetchType. EAGER ... . EAGER ) . It is little bit faster as before. But also this configuration needs 80 seconds in comparing ... =FetchType. EAGER ) , which may be more appropriate for maps that contain external relationships. support Support

Performance issue in a query due to compareTo calls

; @OneToOne (fetch = FetchType. EAGER ) private TCStep step; //For performance reasons, we use a list ... @ElementCollection (fetch = FetchType. EAGER ) private Map values = new HashMap (); } btc_es BTC ... (AccessType.FIELD) public class Values extends Identifiable { @OneToOne (fetch = FetchType. EAGER ) private

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

EM.find() is suddenly slower

.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch = FetchType. EAGER , cascade ... = FetchType. EAGER , cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new ... _path.png  (104 KB) above. btc_es BTC EmbeddedSystems It might be related to a large eager

@ElementCollection of type enum

. EAGER ) private Set permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN ... (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

Why are my Map entries not stored?

    private long id;     @OneToMany(fetch = FetchType. EAGER ... ;@ManyToOne(fetch = FetchType. EAGER )     private Ticket ticket = null;     ... = FetchType. EAGER , cascade=CascadeType.ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated

@OneToMany(fetch = FetchType.LAZY) list is always null

, because all is OK when using EAGER loading, but when I use LAZY with PersistenceUnit (not  ... think it relates to the no-detach option, because all is OK when using EAGER loading, but when I use ... not fully supported, so if it doesn't work well in your project you will probably have to use EAGER when necessary. support Support

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

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

Migration problem

. EAGER ) @Column(name = "isEnabled", unique = false, nullable = false) // @Column(columnDefinition

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

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

Best practise loading big data

as eager ) in situations in which it is impossible to use lazy loading if the classes are enhanced. Eager / lazy setting can increase or decrease performance depending on the specific application. If this is the case then you should be able to improve performance with enhanced classes by eager

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