ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh

Persist error @ManyToMany how to define correct entities relationships

Category but they are all refering to same limited set of Category entities (via ID). There is not changes made to Category from Product. The category ID is taken from the webservice Object ID (unique too). @Entity public class Product implements Serializable { @Id @GeneratedValue

Shared (L2) Entity Cache

is cached: boolean isCached = cache.contains(MyEntity.class, Long.valueOf(id)); Cached entity ... from the shared cache: cache.evict(MyEntity.class, Long.valueOf(id)); // Remove


{ ... @TableGenerator( name="empGen", table="ID_GEN ... _ID", allocationSize=1) @Id @GeneratedValue(strategy=TABLE, generator="empGen") int id; ... } Example 2: @Entity public class Address

Getting Started with JPA - Maven Project

will download the ObjectDB jar automatically. You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Step 6: Set the Spring XML

/> <!-- Add JPA support --> <bean id="emf" class= "org.springframework.orm.jpa ... > </bean> <!-- Add Transaction support --> <bean id="myTxManager" class="org

Eclipse/JPA Java EE Tutorial

For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE

Spring MVC JPA Tutorial - Eclipse Project

Integration for WTP is installed when the Maven project is imported into the IDE). Choose or define

Eclipse/JPA Web Application Tutorial

the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers Apache Tomcat

Eclipse/JPA Spring MVC Web Tutorial

above). Eclipse IDE for Java EE Developers. m2eclipse (Maven plugin) including Maven Integration


. For example, an ObjectId class that has three key fields (int id, String name, and Float salary ... ) { EmployeeKey oid = (EmployeeKey)objectId; fm.storeIntField (0, oid.id); fm.storeStringField (1, oid ... jdoCopyKeyFieldsToObjectId(Object oid) Copy fields from this PersistenceCapable instance to the Object Id

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