ObjectDB ObjectDB

Internal Website Search

1-10 of 147 resultsRefresh
147

Missing (null) elements in eager loaded references

.getCosts().get(0).getAmount() > X Could it be that despite being fetched eager the elements are yet not ... abstract class BaseCostElement extends BaseElement { @ElementCollection(fetch = FetchType.EAGER ... extends BaseCostElement { @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER) private List
146

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

different. Is an "All eager strategy" more efficient that many join fetch ( cartesian product + distinct ). ? In my first impressions ( not tested with metrics ), "all eager fetch" strategy ... entities, you will get a request for each collection to fetch of each object ! So ... "Eager fetch
141

LAZY @ManyToOne field functions as EAGER

and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2 ... ;                 @ManyToOne(fetch=FetchType.EAGER, cascade= CascadeType.ALL)         C cEager ... JPA, LAZY (unlike EAGER) is merely a hint. For example, ObjectDB always loads simple value fields
139

Eager Fetch is not stable for collection or map types?

Hi, thanks very much for your helpful software. The problem is the storage of collection or map 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
137

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 every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER
82

FetchType.EAGER

Enum Constant javax.persistence.FetchType EAGER Defines that data must be eagerly fetched. Since: JPA 1.0
31

Retrieving JPA Entity Objects

Eager Fetch Retrieval of an entity object from the database might cause automatic retrieval ... is FetchType.EAGER, indicating that the retrieval operation is cascaded through the field. Explicitly ... an explicit FetchType.EAGER setting: @Entity class Employee { : @ManyToMany(fetch
28

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 ok ... Richard Szurgot There was a bug in eager fetch of collections and maps of simple values. Build 2.3.2
28

Fetch a whole entity graph eager

next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph ... eager fetch. JOIN FETCH queries. JDO fetch groups. support Support Hello, we have still always the problem to get a complex completed eager entity graph. The best solution would be to provide
27

Bulk load of eager mapped by (inverse) relationships

a separate client-server round trip. Future versions of ObjectDB should load eager mapped by (inverse) fields in bulk as well. support Support Bulk load of eager mapped by (inverse) singular references is now supported in build 2.4.4_13. support Support

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