ObjectDB ObjectDB

Internal Website Search

31-40 of 142 resultsRefresh
18

Merge Issue: Attempt to reuse an existing primary key value

        private String name;         @ManyToMany(cascade = {                 CascadeType ... children ? ( without retrieving child on Db or using other tricks ). Thanks, Xirt Edit : Using CascadeType.MERGE make the test case working ! I think the CascadeType.PERSIST ( included in CascadeType
14

Performance in large transactions

; import javax.persistence.CascadeType; import javax.persistence.ElementCollection; import javax ... = CascadeType.ALL)   private List<MyEntityElement> list = new ArrayList<>();   public List<MyEntityElement ... (cascade = CascadeType.ALL, mappedBy = "ownerEntity")         private List<MyEntityElement> list
14

Is it possible to remove parent/child entities without refresh?

.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity ...   private long id;   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy ... = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH })   private ParentEntity parent
14

Merge with Parent/Child entities not possible

java.util.Map; import javax.persistence.CascadeType; import javax.persistence.Column; import ... = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE
14

EntityManager JPA or JDO impl and different behavior

;         }                 @OneToMany(cascade=CascadeType.PERSIST, fetch=FetchType.EAGER)         public List ... ;             displayValues.put("en", name);         }         @OneToMany(cascade=CascadeType ... have cascade=CascadeType.ALL on a OneToMany map, then the cascade ONLY applies to the values, NOT to the key
13

EM.find() is suddenly slower

= FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH
13

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

CascadeType.PERSIST: @Embeddable public static class AId {     @OneToOne(cascade = CascadeType.PERSIST)     public B b; Apparently the @Embedded annotation works as CascadeType.PERSIST, although B is an entity class, not embeddable class, so CascadeType.PERSIST is the right annotation to use. support Support
3

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

, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ... , cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element
2

Best practise loading big data

javax.persistence.CascadeType; import javax.persistence.ElementCollection; import javax.persistence ... ; @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStepBlock.class, fetch = FetchType.LAZY ... { @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStep.class, fetch = FetchType
2

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

(Long id) { this.id = id; } @OneToMany(cascade={CascadeType.MERGE, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType.LAZY) @JoinColumn(name = "project_id", unique ... ;         @OneToMany(cascade={CascadeType.MERGE, CascadeType.PERSIST},             mappedBy="account", fetch

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