ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh
18

significant performance decrease

; @OneToMany(fetch=FetchType.LAZY) public List<Action> actions = new ArrayList<Action>(); @OneToMany(fetch=FetchType.LAZY) public List<ObjectNode> childNodes = new ArrayList<ObjectNode>(); @OneToMany(fetch=FetchType.LAZY) public List<ObjectNode> container = new
13

persisting object with long[][] arrays of array

static final long serialVersionUID = 1L;     public @Id String id;     @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) public long[] time;     @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a1;     @OneToMany(fetch = FetchType.EAGER, cascade
3

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

; @ManyToOne(fetch = FetchType.LAZY) @JoinTable(name = "Element_owns_Element ... here. Try setting the fetch type of ownedElements to EAGER and check if it affects. Transparent ... . Because the ownedElements relationship is defined as LAZY (the default fetch type for to-many) - the entity
2

getReference(entityClass, primaryKey)

Method javax.persistence.EntityManager T getReference( Class<T> entityClass, Object primaryKey ) Get an instance, whose state may be lazily fetched. If the requested instance does not exist in the database, the EntityNotFoundException is thrown when the instance state is first accessed
0

Persistent.loadFetchGroup

Annotation Element javax.jdo.annotations.Persistent String loadFetchGroup Name of the fetch-group to use when this member is loaded due to being referenced when not already loaded. Returns: the name of the load fetch group Default value: "" Since: JDO 2.1
0

Persistent.defaultFetchGroup

Annotation Element javax.jdo.annotations.Persistent String defaultFetchGroup Whether this member is in the default fetch group. Returns: whether this member is in the default fetch group Default value: "" Since: JDO 2.1
0

fetchShortField(fieldNumber)

Method javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier short fetchShortField( int fieldNumber ) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId. Parameters: fieldNumber - the field number of the key field. Returns: the value of the field to be stored into the ObjectId. Since: JDO 1.0
0

fetchObjectField(fieldNumber)

Method javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier Object fetchObjectField( int fieldNumber ) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId. Parameters: fieldNumber - the field number of the key field. Returns: the value of the field to be stored into the ObjectId. Since: JDO 1.0
0

fetchStringField(fieldNumber)

Method javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier String fetchStringField( int fieldNumber ) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId. Parameters: fieldNumber - the field number of the key field. Returns: the value of the field to be stored into the ObjectId. Since: JDO 1.0
0

fetchBooleanField(fieldNumber)

Method javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier boolean fetchBooleanField( int fieldNumber ) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId. Parameters: fieldNumber - the field number of the key field. Returns: the value of the field to be stored into the ObjectId. Since: JDO 1.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