ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
152

The project does not contain a persistence unit

How do I fix this error/warning that Netbeans gives me regarding no persistence unit? ThreaT Ashton Hogan ObjectDB itself does not require a persistence unit, but NetBeans produces this warning because a persistence unit is required by JPA. Although your application should work well with ObjectDB
152

Exception while accessing the Persistence unit ...?

for the Unit Name) Thanks, Allen ceylonsoft Allen T. Arumainayagam Maybe the persistence.xml file has an error or maybe it is located in the wrong directory, because it seems that the persistence unit ... "> <persistence-unit name="GuestbookPU" transaction-type="JTA"> <provider>com.objectdb.jpa.Provider
33

javax.persistence.spi.PersistenceUnitInfo

are only transformed once within the same classloading scope, regardless of how many persistence units ... the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. Returns whether classes in the root of the persistence unit that have not
33

JPA Persistable Types

The term persistable types refers to data types that can be used for storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes ... can be stored in the database directly. Other persistable types can be embedded in entity classes as fields
32

Storing JPA Entity Objects

"> <persistence-unit-metadata> <persistence-unit-defaults> <cascade-persist/> </persistence-unit-defaults> </persistence-unit-metadata> </entity-mappings> The mapping file ... explicitly in the persistence unit definition (in persistence.xml). Batch Store Storing a large number
30

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java ... . Using plain old Java objects (POJO) to represent persistent data can significantly simplify database ... Persistence API (JPA). By interacting with ObjectDB using standard JPA you can keep your application
29

Shared (L2) Entity Cache

. Per persistence unit in the persistence.xml file. Per entity class - using annotations. ObjectDB ... has to be specified. Persistence Unit Settings The shared cache can also be enabled or disabled using a persistence unit property:    <persistence-unit name="my-pu">      ...      <properties>        <property
28

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map<String ... of a persistence unit. As an extension, ObjectDB enables specifying a database URL (or path) directly, bypassing the need for a persistence unit. Any string that starts with objectdb: or ends with .odb or
27

javax.persistence.EntityManager

instance is defined by a persistence unit. A persistence unit defines the set of all classes ... of the persistence unit. Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel instance Throws: IllegalStateException - if the entity manager
27

JPA Lifecycle Events

/persistence/orm_1_0.xsd" version="1.0"> <persistence-unit-metadata> <persistence-unit-defaults ... -unit-defaults> </persistence-unit-metadata> </entity-mappings> The mapping file ... explicitly in the persistence unit definition (in persistence.xml). Default listeners are applied by

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