Home » Search

About Id

131-140 of 200Refresh
JPA Doc
3

javax.persistence.EntityResult

.createNativeQuery( "SELECT o.id, o.quantity, o.item, i.id, i.name, i.description "+ "FROM Order o, Item i " + "WHERE (o.quantity > 25) AND (o.item = i.id
JPA Doc
3

javax.persistence.MapsId

has simple primary key @Entity public class Employee { @Id long empId; String name ... type of Employee } @Entity public class Dependent { @EmbeddedId DependentId id; ... @MapsId("empid") // maps the empid attribute of embedded id @ManyToOne
JPA Doc
3

javax.persistence.OneToMany

getOrders() { return orders; } In Order class: @ManyToOne @JoinColumn(name="CUST_ID ... orders; } // In Order class: @ManyToOne @JoinColumn(name="CUST_ID", nullable=false ... ) @JoinColumn(name="CUST_ID") // join column is in table for Order public Set getOrders
JDO Doc
3

newObjectIdInstance(pcClass, obj)

constructor of the object id class. It is intended for single field identity. The identity instance returned ... on which the method is called. If the key is the wrong class for the object id class, null is returned ... of the object id Returns: the new ObjectId instance, or null if the class is not registered. Since: JDO 2.0
Forum
3

Need help to make this test work and define proper annotations for entities Lists

javax.persistence.Id; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... class OrderDat implements Serializable {             @Id @GeneratedValue private long id ... id;             }             public void setId(long id) {                 this.id = id
Forum
3

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

.id, r.fileName) FROM RecordingMetaData AS r WHERE ... A remote RMI client runs SELECT (but not SELECT ... to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, r.fileName)' (error 783 ... .arunta.base.db.FileNameDTO(r.id, r.fileName
Forum
3

Problem with distinct select, order by and equivalent alias/attribute path

implements Serializable {     @Id     private String id;         private String town;     public Location() {     }     public Location(String id, String town) {         this.id = id;         this.town = town;     }         public String getId() {         return id;     }     public
Forum
3

Join performance in Objectdb

SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.idImage=i.id AND e.idPage=p.id; So simple ... a wrong command?    According to your query you use IDs instead of references, which is not recommended when using JPA. It seems that a Meta instance holds the IDS of an Image and a Page instances
Forum
3

Strange behaviour with ORDER BY and IN

by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter on this member ... the Entity-ID) actually work well, this behaviour is only observable when filtering and ordering both are done on the ID member.   Assuming this simple Entity class: @Entity public class Location
Forum
3

2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object"

? embedded ID? Is there an ID class attached? Relevant fields and annotations from class JdoBlob2 ... .0 modules). Your id type is StringIdentity. Note that StringIdentity is defined in JDO to represent ... of the id field. You should be able to change the id field to a simple String without database schema