ObjectDB ObjectDB

Internal Website Search

1-10 of 145 resultsRefresh
146

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with @Basic(fetch = FetchType.LAZY ... ; @Basic(fetch = FetchType.LAZY) private String description; @Basic(fetch = FetchType.LAZY ... = FetchType.LAZY hint. Am I doing something wrong? (I am using objectdb-2.3.6_10) tia, Wim wim DC Wim
143

Is there any restriction when using fetch=FetchType.LAZY ?

Hi, I came across a weird behavior when using fetch=FetchType.LAZY in a complex code. However I ... object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList<OdbObject
143

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

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related ... ") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List ... and setters } public class Parent { // ...id @OneToOne(fetch = FetchType.LAZY, cascade
141

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

@Basic(fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing ... of the photos despite of using fetch = FetchType.LAZY. How can I fix this memory issue? Vladiator Vlad Myachikov FetchType.LAZY is a hint that JPA implementations are allowed to ignore. Currently ObjectDB
90

javax.persistence.FetchType

javax.persistence Enum FetchType java.lang.Object java.lang.Enum<javax.persistence.FetchType> javax.persistence.FetchType Implemented Interfaces: Serializable, Comparable<FetchType ... ElementCollection ManyToMany OneToMany ManyToOne OneToOne FetchType EAGER Defines that data
86

values()

Static Method javax.persistence.FetchType FetchType[] values() Returns an array containing the constants of this enum type. This method may be used to iterate over the constants as follows: for (FetchType c : FetchType.values()) System.out.println(c) Returns: an array containing the constants of this enum type, in the order they are declared
83

valueOf(name)

Static Method javax.persistence.FetchType FetchType valueOf( String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant to be returned
82

FetchType.LAZY

Enum Constant javax.persistence.FetchType LAZY Defines that data can be lazily fetched. Since: JPA 1.0
82

FetchType.EAGER

Enum Constant javax.persistence.FetchType EAGER Defines that data must be eagerly fetched. Since: JPA 1.0
37

Retrieving JPA Entity Objects

retrieval by using a lazy fetch type: @Entity class Employee { : @ManyToOne(fetch=FetchType ... is FetchType.EAGER, indicating that the retrieval operation is cascaded through the field. Explicitly specifying FetchType.LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not

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