Home » Search

About IDE

11-20 of 200Refresh
Tutorial
49

Getting Started with JPA and NetBeans

. For this tutorial, besides the Java JDK (5 or above) and the NetBeans IDE (any bundle that includes Java
Tutorial
42

Step 1: Create a Java EE 6 Web Project

Explains how to create a NetBeans Java EE 6 (J2EE) project with ObjectDB/JPA support.
Tutorial
42

Step 1: Create a Java EE 6 Web Project

Explains how to create an Eclipse Java EE 6 (J2EE) project with ObjectDB/JPA support.
Manual
29

Auto Generated Values

number generator for every database. This number generator is used to generate automatic object IDs ... @GeneratedValue with the AUTO strategy: @Entity public class EntityWithAutoId1 { @Id @GeneratedValue(strategy=GenerationType.AUTO) long id; : } AUTO is the default strategy, so the following
Result
23

ObjectDB Object Database Features

. Persistence is set using JPA/JDO annotations (e.g. @Entity, @Id, @Index). Transparent activation ... ObjectDB with no @Id field. Simple primary key - a single @Id field. Composite primary key - multiple @Id fields or a @EmbeddedId field. Primary Key Data Types Primitives (boolean, byte, short, char
Forum
21

ID format in objectdb 2.x for JDOHelper.getObjectId

db tuotrial. I am just wondering, in objectdb 1.x, when i am tring to get the object id ... .toString() = 3:1 , which is not an integer and this object has two feild object id and type id ... to 2.x. And how can i just get the object id without type id. Thanks, Binit In ObjectDB 1.x object
Forum
21

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results
Forum
21

IDs of Entities suddenly became UUIDs?

do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note that this even occurrs on the same "Table" -- some saved Entitities of same type do still have a Long ID ... : @Id @GeneratedId private Long myId; This has always been working, however, suddenly partial
Forum
21

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

modifiers for field uk.co.his.experiment8.cmdline.objdb.CompoundKeyMapItem.container (javax.persistence.Id ... .CompoundKeyMapItem.container (javax.persistence.Id, javax.persistence.ManyToOne) at com.objectdb.o.MSG.d(MSG ... ; import javax.persistence.FlushModeType; import javax.persistence.Id; import javax.persistence
Forum
20

On ensuring ID available after persist

, which relies on an "external" entity object having a non-null id after it has been passed ... up to another element) I am using the following for the ID: @Id //@GeneratedValue(strategy ... AUTO public Long getId() { return id; } The javadocs for EntityManager.persist