ObjectDB Database Search
51-100 of 179 resultsGeneral Performance Issues Illustrated with a Specific Method(cascade = CascadeType.ALL, fetch = FetchType.EAGER) private Person person; @Index private String phn; private String comments; /* Create Properties */ @ManyToOne( fetch = FetchType.LAZY) private WebUser ... .persistence.TemporalType.DATE) private Date createdOn; @ManyToOne( fetch = FetchType.LAZY) private | |
significant performance decrease; @OneToMany( fetch =FetchType.LAZY) public List actions = new ArrayList (); @OneToMany( fetch =FetchType.LAZY) public List childNodes = new ArrayList (); @OneToMany( fetch =FetchType.LAZY) public List container = new ArrayList (); @OneToOne( fetch =FetchType.LAZY) public ObjectNode currentLocation; @OneToOne | |
persisting object with long[][] arrays of array; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) public long[] time; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a1; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a2;   | |
Missing (null) elements in eager loaded references has a OneToMany relationship to DataElement. Every relationship is eagerly fetched Problem ... amount: Element.getCosts().get(0).getAmount() X Could it be that despite being fetched eager ... ; etc... } @MappedSuperclass public abstract class BaseCostElement extends BaseElement { @ElementCollection ( fetch | |
Transaction isolation support?. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin mt Martin Every EntityManager manages its own memory objects ... own defined as @OneToMany( fetch =FetchType.LAZY) List bookList; (And in this example, there is only 1 object in | |
EntityManager JPA or JDO impl and different behavior, and particularly how exactly that map is defined and with which fetch type. If the problem ... ; @OneToMany(cascade=CascadeType.PERSIST, fetch =FetchType.EAGER)   ... ; fetch =FetchType.EAGER, orphanRemoval=true)   | |
jakarta.persistence.Graph.removeAttributeNode(String) Jakarta Persistence (JPA) Method in jakarta.persistence.Graph void removeAttributeNode ( String attributeName ) Remove an attribute node from the entity graph. When this graph is interpreted as a load graph, this operation suppresses inclusion of an attribute mapped for eager fetching | |
jakarta.persistence.Graph.removeAttributeNode(Attribute) Jakarta Persistence (JPA) Method in jakarta.persistence.Graph void removeAttributeNode ( Attribute attribute ) Remove an attribute node from the entity graph. When this graph is interpreted as a load graph, this operation suppresses inclusion of an attribute mapped for eager fetching | |
jakarta.persistence.Graph.removeAttributeNodes(PersistentAttributeType) mapped for eager fetching . The effect of this call may be overridden by subsequent invocations of Graph | |
How to Remove records from many to many relationship tables in JPA public class TransportationEvent { ... @ManyToMany( fetch = FetchType.EAGER, cascade = CascadeType ... { .... @ManyToMany( fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) private List transportationEvents ... .annotations.CascadeType.DELETE_ORPHAN) and i applied that as @ManyToMany( fetch = FetchType.EAGER, cascade | |
Performance issue in a query due to compareTo calls) @ElementCollection private Map values = new HashMap (); @OneToOne ( fetch = FetchType.LAZY, cascade ... ; @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 | |
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 | |
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 | |
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 | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)() { return ownedElements; } private Element owner; @ManyToOne( fetch = FetchType.LAZY) @JoinTable(name ... might be the problem here. Try setting the fetch type of ownedElements to EAGER and check ... (the default fetch type for to-many) - the entity objects are detached without that field | |
Best practise loading big data a boolean flag. @Entity class MyStepBlockCollection { @OneToMany ( cascase = ALL , fetch = Lazy ... = ALL , fetch = Lazy , target = MyStep } ArrayList steps; } @Entity { class MyStep { @ElementCollection ( fetch = LAZY ) ArrayList values; } @Embeddable class MyValue { @Basic boolean flag; @Basic String | |
JQL-Update Queries fails with activated L2-Cache-Query and fetching Entities afterwards from database. Expected result: Getting changed Entities from ... using UPDATE-Query, calling entityManger.clear() and fetching Entities afterwards from database ... using UPDATE-Query and fetching Entities afterwards from database. Expected result: Getting changed | |
@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 |