ObjectDB ObjectDB

Internal Website Search

41-50 of 86 resultsRefresh
11

OneToMany and cascade delete problem

): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store ... { @OneToMany(targetEntity = Offer.class, mappedBy = "product", fetch = FetchType.LAZY, cascade = CascadeType
11

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

(mappedBy = "owner") private List<City> cities; private String name; public String ... serialVersionUID = 33L; @OneToMany(mappedBy = "city") private List<Person> persons
11

Performance in large transactions

(cascade = CascadeType.ALL, mappedBy = "ownerEntity")         private List<MyEntityElement> list ... = CascadeType.ALL, mappedBy = "ownerEntity")         private List<MyEntityElement> list = new ArrayList
11

Object explorer cannot open odb file. ObjectDB many-to-many relationship

(mappedBy = "user") @MapKey     private Map<Assignement.PK, Assignement> assignements; } @Entity public class Project {     @Id     private String code;         @OneToMany(mappedBy = "project
11

A bidirectional OneToOne association with a shared primary key

"two unidirectional relationships" which (I assume) would not include a mappedBy attribute ? Thanks andrewv Andrew Voumard No annotations are required by ObjectDB (you may use @OneToOne annotations with no mappedBy
11

JPA vs JDO - which is more efficient for OneToMany queries?

JPA: @Entity class Customer { @OneToMany(mappedBy="customer") Vector<Order> orders ... , and the @OneToMany(mappedBy="") on the collection was handled entirely implicitly! dmoshal David Moshal
11

Removing an entity throws exception

; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List<Item> itemList; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List<OtherItem
2

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

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

com.objectdb.o.InternalException: null

PersistableObject {     @OneToOne(mappedBy = "spouse")     private Customer spouse = null;     private ... paymentPeriodicity = Payment.Periodicity.QUARTERLY;     @OneToMany(mappedBy = "customer", fetch = FetchType
2

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

ArrayList<Element>(); @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL) public ... before detachment The easiest way is to set the fetch type to EAGER: @OneToMany(mappedBy = "owner

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