Home » Search

About long

51-60 of 200Refresh
JPA Doc
3

javax.persistence.MapsId

has simple primary key @Entity public class Employee { @Id long empId; String name ... public class DependentId { String name; long empid; // corresponds to primary key
JPA Doc
3

javax.persistence.Version

, Integer, short, Short, long, Long, java.sql.Timestamp. Example: @Version @Column(name
JDO Doc
3

nextValue()

Method javax.jdo.datastore.Sequence long nextValue() Returns the next sequence value as a long. If the next sequence value is not available or is not numeric, throw JDODataStoreException. Returns: the next value Since: JDO 2.0
JDO Doc
3

setLongField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setLongField(   PersistenceCapable pc,   int field,   long currentValue,   long newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field
JPA Doc
3

sumAsLong(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> sumAsLong(   Expression x ) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0
JPA Doc
3

toLong(number)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> toLong(   Expression number ) Typecast. Returns same expression object. Parameters: number - numeric expression Returns: Expression<Long> Since: JPA 2.0
Forum
3

Optimistic locking: prevent version increment on entity collection attribute

    @Id private long id;        @OneToMany(mappedBy="document")     private ArrayList readings = new ArrayList();        public long getId() {         return id ... Reading {        // ID is generated by the database     @Id private long id;     private Document
Forum
3

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

Long id; private String fileName; public FileNameDTO(Long id, String fileName) { this.id = id; this.fileName = fileName; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String
Forum
3

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

class OrderDat implements Serializable {             @Id @GeneratedValue private long id ... ;                 this.items = items;             }             public long getId() {                 return id;             }             public void setId(long id) {                 this.id = id
Forum
2

Error 363 - Failed to read value of inverse relationship

= GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town ... Player implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; private int permission = 0, activePermission = 0