About IDE

1-10 of 200Refresh
JDO Doc
324

JDO Predefined ID Classes

An object ID is a combination of a persistence capable class and a primary key. It provides a unique representation of a persistent object. The following classes serve as predefined ID classes for persistence capable classes with a simple single field primary key: Object IDs are used in many
JPA Doc
97

javax.persistence.Id

javax.persistence Annotation Id Target: Fields (including property get methods) Specifies the primary key of an entity. The field or property to which the Id annotation is applied ... : @Id public Long getId() { return id; } Since: JPA 1.0 See Also: Column GeneratedValue Learn
JDO Doc
96

Constants.PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID The name of the persistence manager factory element's "server-time-zone-id" attribute. Since: JDO 2.1
JDO Doc
95

Constants.PROPERTY_SERVER_TIME_ZONE_ID

Static Field javax.jdo.Constants String PROPERTY_SERVER_TIME_ZONE_ID Mapping "javax.jdo.option.ServerTimeZoneID" Since: JDO 2.1
Forum
33

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
33

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
33

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
33

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
33

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
Issue
33

When using inheritance, you can specify, which ID to use

When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) should be used for new object. For example: public EntityA() {     @Id     long id;     String field1; }   public EntityB() extends EntityA() {     @Id     long id;     String field2