ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh
7

Storing JPA Entity Objects

of other persistable types can only be stored in the database embedded in containing entities (as ... already contains another entity of the same type with the same primary key, an EntityExistsException ... ().commit(); Instances of persistable types other than entity classes are automatically stored
7

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:
7

Entity Management Settings

") specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly ... mechanisms for entities: The ref attribute specifies the reference type for holding non dirty entities in ... method for instances of serializable types that are non persistable otherwise (e.g. a user defined
7

JPA Criteria API Queries

); List<Country> results = query.getResultList(); Because eventually both types of queries ... , currentDate, ...). Paths, navigation and types (get, type). Arithmetic expressions (sum, diff, prod
7

javax.persistence.Query

not support this use Since: JPA 2.0 Parameter<T> getParameter(int position, Class<T> type) Get the parameter object corresponding to the declared positional parameter with the given position and type ... and type. This method is not required to be supported by the provider. Parameters: position
7

javax.persistence.metamodel.CollectionAttribute

,Collection<E>>, Bindable<E>, PluralAttribute<X,Collection<E>,E> Instances of the type CollectionAttribute ... > getBindableJavaType() Return the Java type of the represented object. Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned
7

javax.persistence.metamodel.ListAttribute

>>, Bindable<E>, PluralAttribute<X,List<E>,E> Instances of the type ListAttribute represent persistent javax.util.List-valued attributes. Since: JPA 2.0 Class<T> getBindableJavaType() Return the Java type of the represented object. Return the Java type of the represented object. If the bindable type
7

javax.persistence.metamodel.PluralAttribute

of the type PluralAttribute represent persistent collection-valued attributes. Since: JPA 2.0 Class<T> getBindableJavaType() Return the Java type of the represented object. Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type
1

Step 5: Add a JSP Page

import="guest.*"%> <jsp:useBean id="guestDao" type="guest.GuestDao" scope="request" /> <!DOCTYPE ... > <body> <form method="POST" action="guest.html"> Name: <input type="text" name="name" /> <input type="submit" value="Add" /> </form> <hr><ol
1

Step 5: Add a JSP Page

" pageEncoding="ISO-8859-1"%> <%@page import="guest.*"%> <jsp:useBean id="guestDao" type="guest.GuestDao ... "> Name: <input type="text" name="name" /> <input type="submit" value="Add

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