ObjectDB ObjectDB

Internal Website Search

81-90 of 93 resultsRefresh
7

@OneToMany(fetch = FetchType.LAZY) list is always null

; @ManyToOne private Parent parent; public int getId() { return id
7

Foreign key constraint issue

private long id; @ManyToOne(optional = false, cascade = {}) @JoinColumn(name="PARENT_ID", nullable
7

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade
7

Object as parameter results in exception

Hi, I've got a simple JPA2 Criteria query which fails when doing an object equality. I verified this against EclipseLink and over there, it works. I'll Attach some code snippets to help figure it out: @Entity() public class Product{ . . . @ManyToOne     private Compamy
7

"Problem" with cross join

=InheritanceType.JOINED) ... @ManyToOne private CI ci; subclass CIstring private String text; I
7

Relationships and tracking changes

@Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne
7

Query problem

Hi, Given : @Entity(name = "Inspiration") public class Inspiration implements Serializable {     ....     @ManyToOne(fetch = FetchType.EAGER)     protected Atelier atelier;     .... } I have a query : SELECT i FROM Inspiration i WHERE i.atelier.id = 3 When I run this query I get wrong
7

Storing a tree of data (depth=3)

final long serialVersionUID = 1L; /** real name of person in life. */ @NonNull @ManyToOne
7

Find the error...JPA ENTITY HIBERNATE

.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.Table
1

JPQL support for mapped by (inverse) collections

@GeneratedValue long id;                 @ManyToOne         A a;            } } The query in

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