About long

61-70 of 200Refresh
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

Composite Index error 328

UsrlistEntity implements Serializable { private static final long serialVersionUID = -4472890635861972890L; private int id; private int dyId; private long pwd; private String ... job; private String phoneNumber; private Long contactHash; private String kadrosu
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
2

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

Date field Index is corrupted due to time change

");         em.getTransaction().begin();         Long r = (Long) q.getSingleResult();         em ... COUNT(r) FROM DateTime AS r");         em.getTransaction().begin();         r = (Long) q ... roundDownDateTime(Date dateTime) {         long dateTimeMs = dateTime.getTime();         long
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
Forum
2

Possible issue with timestamps

().commit();              TypedQuery<Long> query = em.createQuery("SELECT count(c) FROM CDI c", Long.class);         Long cdiCount = query.getSingleResult();         assertEquals(22, cdiCount.intValue ... '2012-03-29 00:00:00'} and c.creationDate < {ts '2012-03-29 00:59:00'}", Long.class
Issue
2

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Account extends AbstractEntity implements IAbstractEntity<Long> { @Id @Column(name = "account_id") @GeneratedValue(strategy= GenerationType.TABLE) protected Long id; @Override public Long getId() { return id; } @Override public void setId