ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
96

Fetching Collections Puzzle

If I dont declare explicitly the fetch strategy for "children" as FetchType.Eager, then how can I ... elements in the db) By default JPA spec says that colletions are to be lazy fetched. You can try this in a query. "select n from Node n left outer join fetch n.children
96

Query with FETCH JOIN returns multiple results instead of one.

jpqlResult = em.createQuery( "SELECT d FROM Demand d JOIN FETCH d.services WHERE d=:demand ... and fetch its services. Demand object is identified and found correctly, but as it is associated ... should return only one result, with fetched service sub-elements, shouldn't it? I am almost sure
95

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I ... { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List<A> aClasses; } Now, I want to fetch all B classes with all A classes skipping lazy loading: select b from B b join fetch b
94

Mapped By Fetch is very Slow

, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. So my performance issue ... ) {    System.out.println("FAILED TO FETCH !");   } } Regards, Xirt xirt Sylvain Thank ... , When you fetch 10 000 entities of MyEntityParent, you already have the link to children. Why ObjectDb
94

Is there any restriction when using fetch=FetchType.LAZY ?

Hi, I came across a weird behavior when using fetch=FetchType.LAZY in a complex code. However I ... object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private LinkedList<OdbObject> referencedObj; My test suite is running well. 2. However when I change fetch to LAZY
94

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

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related ... ") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List ... and setters } public class Parent { // ...id @OneToOne(fetch = FetchType.LAZY, cascade
94

Eager Fetch is not stable for collection or map types?

types is not stable, we lost them sometimes after JVM restarted. Eager fetch is properly set ... and fetch is: @Entity public class Game {     .......     @ElementCollection(fetch=FetchType.EAGER ... _fetch] ["+g.getMembers().size()+"]"); return g; } } finally { em.close
93

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
93

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
1

javax.jdo.PersistenceManager

(DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph of instances reachable from the pc parameter. The state of fields in ... fetch groups determine the scope of fetching for the graph of instances reachable from the pcs

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