ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh

Duplicatable and Disposable JPA Repository for Unit Testing

Duplicatable and Disposable JPA Repository for Unit Testing

Externalising persistence.xml properties in Glassfish?

modules (hence, many persistence-units). I realise that it can be a limitation stemming from JPA ... <persistence-unit name="invoicingTxUnit" transaction-type="JTA"> <provider>x.y.z ... --> </properties> </persistence-unit> So, anyone encounter any tutorials for handling

Strings in JPQL and Criteria Queries

to persistent string fields. as results of predefined JPQL string manipulation functions. LIKE - String ... the argument string as an int. For example: LENGTH('United States') is evaluated to 13. LENGTH

Entity Management Settings

" /> <fetch hollow="true" /> <persist serialization="false" /> <cascade-persist always="auto" on-persist="false" on-commit="true" /> <dirty-tracking arrays="false" /> </entities ... ") specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly


javax.persistence Enum GenerationType java.lang.Object java.lang.Enum<javax.persistence.GenerationType> javax.persistence.GenerationType Implemented Interfaces: Serializable ... /JPA manual. GenerationType AUTO Indicates that the persistence provider should pick an appropriate


javax.persistence Interface TypedQuery<X> Superinterfaces: Query Interface used to control ... Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement or ... Throws: IllegalStateException - if the query is found not to be a Java Persistence query language


javax.persistence Annotation OrderColumn Target: Fields (including property get methods) Specifies a column that is used to maintain the persistent order of a list. The persistence provider is responsible for maintaining the order upon retrieval and in the database. The persistence provider

Step 2: Define a JPA Entity Class

.Serializable; import javax.persistence.*; @Entity public class Point implements Serializable ... is an ordinary Java class. The warning that NetBeans displays on the Guest class indicates that a persistence unit definition in an XML file is missing. This is discussed in the ObjectDB Manual


. Since: JDO 2.1 String PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME The name of the persistence manager factory element's "persistence-unit-name" attribute. The name of the persistence manager factory element's "persistence-unit-name" attribute. Since: JDO 2.1 String PMF_ATTRIBUTE_READONLY The name


javax.jdo.annotations Annotation Persistent Target: Fields (including property get methods) Annotation for defining the persistence of a member. This corresponds to the xml elements "field ... persistent but in the non-embedded instances the member is persistent. Note that it is not portable

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