ObjectDB ObjectDB

Internal Website Search

181-190 of 200 resultsRefresh

Performance problem

due to a massive EAGER fetch that follows the query execution. That eager fetch doesn't happen for example ... the database. You may find out that by a recursive EAGER fetch you enforce loading of the entire ... Emil Perić The answer to your question is that the Explorer doesn't apply EAGER fetch. You wrote

How to Remove records from many to many relationship tables in JPA

TransportationEvent { ... @ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST) private List ... { .... @ManyToMany( fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) private List ... ) and i applied that as @ManyToMany(fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST

Performance issue in a query due to compareTo calls

private Map<Integer, String> values = new HashMap<>(); @OneToOne (fetch = FetchType.LAZY ... private long stepNumber; @OneToOne (fetch = FetchType.EAGER) private TCStep step ... as the add operations //per index in the list @ElementCollection (fetch = FetchType.EAGER

Possible issue with LAZY Loading

and 2.4.3_01 the db is always returning everything, including the data marked as Fetch.LAZY. I wrote ... EntityManager, but it is fetched lazily when needed. You do see a difference (in addition to performance ... be available and will not be fetched either. support Support Ok, so then I believe Lazy loading

EM.find() is suddenly slower

(AccessType.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch ... element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH ... eager fetch that affects the performance of further operations. Could you please check build 2.8.6

can't get HashMap out of the database

the map with @OneToMany(fetch=FetchType.EAGER). Outside the DAO method only fields ... Date signingDate;     @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL) private ... Long id; @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)     private ArrayList

New entity objects are duplicated on merge cascading

.ALL, fetch= FetchType.EAGER)         private List<Chapter> chapters;     }     @Entity     public ... A {         @Id @GeneratedValue long id;         @OneToOne(fetch = FetchType.LAZY, cascade ... @GeneratedValue long id;         @ManyToOne(fetch= FetchType.LAZY)         A owner

JQL-Update Queries fails with activated L2-Cache

and fetching Entities afterwards from database. Expected result: Getting changed Entities from ... UPDATE-Query, calling entityManger.clear() and fetching Entities afterwards from database. Expected ... -Query and fetching Entities afterwards from database. Expected result: Getting changed Entities from

@FetchGroup in JPA similar to JDO

JDO. It works like this. First you specify attributes to fetch from database: @FetchGroup(name ... ); query.setHint(QueryHints.FETCH_GROUP_NAME, "names"); This will be equivalent to query using tuples ... .class); But with fetch group you don't have to convert tuples to objects. I know that you can add many

Tracking changes to new collections (in enhancement mode) after flush

.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch = FetchType.EAGER ... ; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ... MappingImpl { @Id private String uid; @OneToOne (fetch = FetchType.EAGER

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