ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
26

EntityManager.refresh takes a long time

GMT+04:00 2013 Person has a large number of relations, including relationsto itself with a cascade refresh: @OneToMany(mappedBy = "person", cascade = CascadeType.ALL) private List<OpenIdAuth> openIdAuths = new ArrayList<>(); @OneToMany(mappedBy = "person", cascade = CascadeType
15

Updating JPA Entity Objects

can be cascaded from all the entity objects that have to be stored in the database, including from ... . If global cascade persist is enabled all the reachable entity objects that are not managed
12

javax.persistence.CascadeType

<CascadeType> Defines the set of cascadable operations that are propagated to the associated entity. The value cascade=ALL is equivalent to cascade={PERSIST, MERGE, REMOVE, REFRESH, DETACH}. Since: JPA 1.0 CascadeType ALL Cascade all operations Cascade all operations Since: JPA 1.0 CascadeType DETACH Cascade
10

DELETE Queries in JPA/JPQL

As explained in chapter 2, entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager. Removing these objects from the EntityManager within an active transaction, either explicitly by calling the remove method or implicitly by a cascading operation
10

JPA Annotations for Relationships

annotation enables configuring cascade and fetch policy, using the following enum types: Additional
10

javax.persistence.OneToMany

that is the owner of the relationship. When the collection is a java.util.Map, the cascade element ... // In Customer class: @OneToMany(cascade=ALL, mappedBy="customer") public Set ... .class, cascade=ALL, mappedBy="customer") public Set getOrders() { return orders
8

javax.persistence.OneToOne

[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0 FetchType fetch (Optional) Whether the association
7

javax.persistence.ManyToMany

; } Since: JPA 1.0 See Also: JoinTable CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. When the target collection is a java.util.Map, the cascade element applies
6

javax.persistence.ManyToOne

CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0 FetchType fetch (Optional
4

NullpointerException when execute a commit

.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... :169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com ... -to-one name="commitment" target-entity="test.FormalismData"> <cascade> <cascade-all /> </cascade

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