ObjectDB ObjectDB

Internal Website Search

71-80 of 93 resultsRefresh
7

Cascade delete with unidirectional mapping

Suppose entity A is referenced from entity B, like (A -> * B) but not actually having that reference, instead only B has @ManyToOne relationship to A and A has none. Is there a way to cascade delete of B's when deleting A? Or this should be done programatically with separate call to database
7

Multi-tenant capability with hierarchies

an error "Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne", even if I don't
7

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

; }   @Entity class Order { @ManyToOne Customer customer } Are you saying
7

Database Inconsistency or corruption

markedDeleted = false; @ManyToOne private Project project; @javax.persistence.OneToMany(cascade=javax
7

mappedBy problem

; @ManyToOne public Employee employee; } The address class will never persist !! eml W M
7

Why are my Map entries not stored?

    private long id;     private LocalDateTime dateTime = null;     @ManyToOne(fetch = FetchType
7

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List<A> aClasses; } Now, I want
7

Items in list are doubled, when the entity class is not enhanced

; @ManyToOne private Customer customer; ... getters and setters } public class JavaApplication
7

Efficient query on EmbeddedId

on an @Entity field? Example: int carId or @ManyToOne Car car (which has an int id) (I know the annotation
7

Removing an element from an @OneToMany doesn't work

Hello. I have a Parent and Child entities. // in the parent @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List<Child> children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0

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