ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
9

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade ... = "a", cascade = CascadeType.ALL)         List<A> listA_mapped;         @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         List listB_unmapped;     }     @Entity
9

Updating Entities

... How do I ensure that any changes done to paygradeDB cascade into employeeDB? DragonRulerX Jared Hinze ... to cascade throughout the entire application. I don't want to tell my users "If you make a modification ... and paygradeDB, are actually to different objects entirely - which explains why the changes weren't cascading
9

Dirty checking

: What's the best way to cascade persistence of Entities contained by other Entities (i.e ... one atomic unit regarding change detection. Please use a new forum thread to discuss cascading, as ... them Entities instead. will move cascading discussion to a new thread. thanks dmoshal David Moshal
9

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

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level (<cascade-persist always="auto" on-persist="false" on-commit="true" />) - Either at JPA global level (orm.xml). For defining fetch policy, I know the local way
9

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

.visitRefs(CLT.java:161) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS ... ) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o ... (); em.persist(project); //rely on Cascade all on ownedElements. The reported error
9

Error 613 - i cant put a list<Athlete> into a Squad object

explicitly before commit. Annotate the athletes collection using @OneToMany(cascade=CascadeType.PERSIST). Annotate the athletes collection using @OneToMany(cascade=CascadeType.ALL). Set global automatic cascading persist. See the Storing JPA Entity Objects page in the ObjectDB manual for more details. support Support
9

Performance in large transactions

));   }   return floats; } @Entity public static class MyEntity {   @OneToMany(cascade ... (cascade = CascadeType.ALL, mappedBy = "ownerEntity")         private List<MyEntityElement> list ... floats;     }     @Entity     public static class MyEntity {         @OneToMany(cascade
9

Fields in objects not populated in query result.

; @OneToMany(cascade=CascadeType.ALL) private Map<String,Entry> children = new TreeMap ... ; private String name; private String description; @ManyToOne(cascade=CascadeType.PERSIST) private Folder parent; private boolean listable; @ManyToMany(cascade=CascadeType
9

Storing objects problem

Your code persists only the root object. If you want to cascade the persist operation to referenced ... :   @OneToMany(cascade=CascadeType.PERSIST)   private List<DeviceT> children; You may also specify cascading persist globally as explained in the manual. support Support
1

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

, which using a serious of cascading lazy builder methods (with complex entity building and wiring ... // of entities using cascading lazy creation methods. } return project ... ]"); // Would normally do other builder stuff here for project .. // before using in other cascading lazy

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