ObjectDB Database Search
1-50 of 87 resultsRetrieving JPA Entities it. If the object is not in the database, find returns null . A similar method, getReference , is a lazy ... from this automatic cascaded retrieval by specifying a lazy fetch type: @Entity class Employee { : @ManyToOne ( fetch = FetchType . LAZY ) private Employee manager; : } The default for non-collection | |
Problem with @Basic(fetch = FetchType.LAZY) I have a class where two fields are annotated with @Basic(fetch = FetchType. LAZY ... = FetchType. LAZY ) private String description; @Basic(fetch = FetchType. LAZY ) private String code ... and description properties must have been loaded on the query, ignoring the fetch = FetchType. LAZY hint | |
Possible issue with LAZY Loading Hi, We need lazy loading for one of our large data sets. When I run currently against both 2.4.2 and 2.4.3_01 the db is always returning everything, including the data marked as Fetch. LAZY . I ... Edwards Your observation in #2 is correct - LAZY loading doesn't necessarily mean that the data | |
LAZY @ManyToOne field functions as EAGER to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW ... closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b ... , when it is marked as @ManyToOne(fetch=FetchType. LAZY ) ? package com.greensoft.objectdb.test | |
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 | |
Does ObjectDB support lazy loading? I'm evaluating ObjectDB 2.0 RC1. Everything works fine except a lazy loading problem. I've ... support lazy loading, am I right? psfung Samuel Fung ObjectDB does support both lazy and eager ... that demonstrates that issue. The following sample program demonstrates lazy loading: package com.objectdb | |
@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed; @Lob @Basic(fetch = FetchType. LAZY ) private byte[] content; And after some queries with Thing ... of the photos despite of using fetch = FetchType. LAZY . How can I fix this memory issue? Vladiator Vlad Myachikov FetchType. LAZY is a hint that JPA implementations are allowed to ignore. Currently | |
problem with lazy loading - unittest project attached have checked the zip content again and the test resource file spring-data-jpa- lazy -loading/src/test ... is lazy - it is unavailable in a detached Foo instance and the collection looks empty. support Support | |
Global way to set Lazy-loading fetch functionality for all the fields fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType. LAZY )). Is there any way ... if neither objectdb nor JPA offers it). ouba64 Ouba Mahamane Lazy / Eager can only be set locally | |
Lazy Init / Eager / Join Fetch collection strategy ? What to choose ? Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. (depends on context) In JPA / Hibernate world ... up the Lazy collection (by getting size() of Collection) is a very weak solution. In case | |
Setting and Tuning of JPA Queries) or " LAZY " . When LAZY is used, result entities are returned as references with no content | |
JPA Core Types the load state of an entity or attribute without triggering lazy loading. An extended utility interface ... attributes, and access entity content not yet fetched due to lazy loading. Provides an API for programmatic | |
JPA Attributes Annotations ( Lazy /Eager) and nullability. Specifies a persistent field or property as an embedded attribute | |
JPA Fetch Plan Graphs ( Lazy /Eager) at runtime using hints (e.g., jakarta.persistence.fetchgraph ). A nested graph | |
JPA Class Enhancer whenever a persistent field is modified. Enhanced code enables lazy loading of entities | |
jakarta.persistence.FetchType on the persistence provider runtime that data must be eagerly fetched. The LAZY strategy is a hint to the persistence ... is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example: @Basic(fetch = LAZY ) protected String getName() { return name; } See Also: Basic ElementCollection | |
jakarta.persistence.ManyToMany on the persistence provider runtime that the associated entity must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults to LAZY . Default: FetchType. LAZY Since: Jakarta Persistence (JPA) 1.0 String mappedBy The field that owns the relationship | |
jakarta.persistence.ElementCollection must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults to LAZY . Default: FetchType. LAZY Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods | |
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 | |
jakarta.persistence.Lob it defaults to CLOB ; for all other types it defaults to BLOB . Example 1: @Lob @Basic(fetch = LAZY ) @Column(name = "REPORT") protected String report; Example 2: @Lob @Basic(fetch = LAZY ) @Column(name | |
Lazy retrieval by access not working correctly I have a problem loading lazy associations by access/navigation with an @Embedded attribute containing an @ElementCollection which is lazy loaded. I'm not sure if the same problem exists ... correctly. Without the breakpoint, my lazy collection does not get loaded. Here are code | |
Navigation through lazy loading from Detached Objects: on accessing lazy loaded relationships outside a transaction, after a query, from Glassfish forum thread ... lazy loading) - until serialization, which completes the detachment. It seems that implementing ... for that) but for us the inability to navigate lazy relationships of detached entities is a big showstopper, as we rely | |
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 )   | |
Cascade.ALL with LAZY fetchtype does not clean up all references on remove Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType. LAZY . If I now delete a root entity using EntityManager.remove all leaf nodes will not be deleted. This only applies to the leaf nodes. If I add an additional the behaviour changes | |
Query in nested transaction returns detached entity if lazy-loadedQuery in nested transaction returns detached entity if lazy-loaded | |
Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities (and so lazy loading would initially work), they become detached once the EntityManager under control of the container, and then in ObjectDB (but not in EclipseLink) lazy loading fails. The 3 possible ... all the benefits of lazy loading of course. 2. Perform the query within a @Stateful session bean | |
General Performance Issues Illustrated with a Specific Method; private String comments; /* Create Properties */ @ManyToOne(fetch = FetchType. LAZY ) private WebUser ... .persistence.TemporalType.DATE) private Date createdOn; @ManyToOne(fetch = FetchType. LAZY ) private Institution createInstitution; @ManyToOne(fetch = FetchType. LAZY ) private Institution poiInstitution | |
jakarta.persistence.OneToMany.fetch. The LAZY strategy is a hint to the persistence provider runtime. Default: FetchType. LAZY Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.ManyToOne must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not | |
EntityManager JPA or JDO impl and different behavior of with eager fetch annotation and the map values were still lazy loaded(using the latest objectdb 2.3 ... to get to the bottom of LAZY /EAGER loading of maps. In addition, non related. Since upgrading to 2.3.4 ... the datamodel a bit more exposed another problem with lazy loading. In the attached project it's demonstrated | |
jakarta.persistence.Basic.fetch fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified | |
jakarta.persistence.OneToOne.fetch. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults to EAGER | |
Transaction isolation support?. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks ... own defined as @OneToMany(fetch=FetchType. LAZY ) List bookList; (And in this example, there is only 1 object in ... the new book added by B?. And does this change if FetchType. LAZY changes to FetchType.EAGER? In a SQL | |
Memory error during commit, if @ElementCollection field contains many elements although the element collection is actually not load because it is a lazy field. Why we run into ... content still requires memory space. Lazy setting in JPA is considered as a hint to the implementation, but the implementation can still load content eagerly. ObjectDB follows the lazy setting hint | |
Explorer in 2.3. Then allow import of that file into another database. 2. Lazy loading of data, especially in table view ... : 2. Lazy loading of data Data is already loaded lazily. There is a problem when opening a table or | |
Memory use in OneToMany relationships is LAZY ). There is a difference between using reflection mode and enhancement mode. In enhancement ... , but LAZY is only a tip for the implementation. support Support | |
List of Enum Values in an entity only fields that have been loaded before detachment (e.g. defined as eager rather than lazy , or ... LAZY to EAGER : private @OneToMany(fetch=FetchType.EAGER) List flags; According | |
How to Remove records from many to many relationship tables in JPA { .... @ManyToMany( fetch = FetchType. LAZY , cascade = CascadeType.PERSIST) private List transportationEvents ... _ORPHAN) private List conclusions = new ArrayList (); @ManyToMany( fetch = FetchType. LAZY , cascade | |
virtual servers and one file your server). The GC does seem very lazy , but it is unclear if this is the issue, as you have not reported ... ; OutOfMemoryError is thrown then this could be the normal ( lazy ) behaviour. Have you tried | |
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 | |
Fetching Collections Puzzle are EAGER by default. They will be loaded lazily only if they are annotated as LAZY explicitly ... ;colletions are to be lazy fetched. You can try this in a query. "select n from Node n left outer | |
@Column( name = "columnName") doesn't work(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany(fetch = FetchType. LAZY ... = FetchType. LAZY , cascade = CascadeType.ALL) private AfwCodedDataBlock codedDataBlock; private int level | |
Difference performance in ObjectDB Explorer and in java project are executed in the Explorer in a special lazy mode, which is faster in returning the results ... ; query.setHint("objectdb.result-fetch", " LAZY "); support Support Thank you, is where any | |
removed objects stay with null field values in the reference; ... @OneToMany(fetch=FetchType. LAZY ) public Set workflow = new HashSet (); When we remove an object ... remaining sceleton is still in the database and loaded by a subsequent lazy loading ? hgzwicker Hans | |
Adding multi part path index on non-embedable object member { @MapsId @ManyToOne(fetch = FetchType. LAZY ) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType. LAZY ) private List stores; // Setter/Getter } So I wanted to add index on Customer for merchant | |
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 ... objects in the persistence context are detached. Because the ownedElements relationship is defined as LAZY ... under FetchType. LAZY (which the above would seem to suggest is your default) is broken. Please investigate | |
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 | |
Enhanced classes problem Marta Maruta M Sedlakova The cause is unclear yet, but I can confirm that it happens in lazy loading, which is supported only when classes are enhanced. As a workaround, please try to disable this lazy ... : System.setProperty("objectdb.temp.no- lazy -o2o-inverse", "true"); or as a JVM parameter: java -Dobjectdb | |
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 ... is detached (e.g. when the EntityManager is closed), ObjectDB replaces lazy loaded collections |