ObjectDB ObjectDB

Internal Website Search

111-120 of 200 resultsRefresh

Persisting collection where members are subclasses

been persisted. You have to persist every entity object explicitly unless cascading persist ... ;         @OneToMany(cascade=CascadeType.PERSIST)         private Map<String,Entry> children = new HashMap

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType

Entity not removed 100%

When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany(cascade=CascadeType ... It is the application responsibility to clear references to removed objects. Cascading removal operates

Replication issue, Replayer failing due to NullPointerException.

="error" /> <cache ref="weak" level2="0mb" /> <persist serialization="false" /> <cascade-persist ... " /> <cascade-persist always="auto" on-persist="false" on-commit="true" /> <dirty-tracking arrays="false

ObjectDB Explorer don't show ManyToOne relations

= ModelElementImpl.class, cascade = {CascadeType.REFRESH}) private ModelElement parent; } If we use ... .class, cascade = {CascadeType.REFRESH}) private ModelElementImpl parent; } Can you fix this in

Some details about db behavior

will refer to it. Please explain what is happening there? I know about cascade option, and if I use ... ) after persisting a B instance that references an A instance (with cascading enabled

NullPointerException on TreeSet load

(cascade=CascadeType.PERSIST)         Set<MyElement> set = new TreeSet();     }          @Entity ... {         @OneToMany(cascade=CascadeType.PERSIST, fetch = FetchType.EAGER)         Set<MyElement> set

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 ... ", cascade = CascadeType.ALL, fetch=FetchType.EAGER) public List<Element> getOwnedElements

ClassCastException after upgrade to 2.3.5_03

{ @Id String id; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType

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 ... ;         @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