ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
89

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

" />) - Either at JPA global level (orm.xml). For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global level ... Ouba Mahamane Lazy / Eager can only be set locally per relationship, and for some extent also per query (using JOIN FETCH). support Support
89

Failed to write the value of field using reflection (error 363) on LAZY fetch

-fetch", "LAZY");) on the query execution it works. I assume it has to do with the @Transactional ... hints? The Mapping of class Modell and its member: @Entity class Modell { ... @OneToMany(fetch ... .result-fetch", "LAZY");     List<T> entities = query.getResultList(); } Stack Trace Exception in
89

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 in queries, not in the configuration. support Support
87

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in ... as the fetch type of all relationships may cause loading the entire database into memory
87

LazyInitialization / join fetch

the fetch join? If so should I do to all fields of List , ie OneToMany or should also be done for joins ? Grateful. This may be occurring due to not doing the fetch join? If so should I
87

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains @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
86

Entity has be persistended,but query not fetched?

I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities.But then the newT is not contain in the query result. Why? code order: query.setFlushMode(FlushModeType.AUTO); query.getResultList(); maozf maozf The following example demonstrates
17

Mapped by fields are not initialized by JOIN FETCH in queries

As demonstrated in this forum thread, a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support Build 2.4.1_06 fixes this issue (fields are now initialized and the test in
17

Eager Fetch of Map with Entities as Keys

{         @Id private long id = 1;         @OneToMany(fetch=FetchType.EAGER)         Map map = new
1

javax.jdo.FetchPlan

javax.jdo Interface FetchPlan Fetch groups are activated using methods on this interface ... and setDetachmentOptions. Specifies that fields that are not loaded but are in the current fetch ... and setDetachmentOptions. Specifies that fields that are loaded but not in the current fetch plan

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support