Home » Search

About date

131-140 of 197Refresh
Forum
1

_PersistenceException: Type is not found on getSingleResult.

identificacion;         private TipoIdentificacion tipo;         @Temporal(TemporalType.DATE)     private Date fechaNacimiento;         private String primerNombre;         private String
Forum
1

Calculating age in query?

Hi! I've got an issue: I have a birthdate as java.sql.Date and a separate field int age. However, of course the age is not accurate because it gets set only once. So what's the best bet (JPA Standard ... ? thanks! Alex You can use a JPQL query with a simple date comparison: SELECT p FROM Person p WHERE p
Forum
1

Composite indexes

(kitchen, bedroom etc.) Date lastModificationDate; // date of last modification Float rating; //users
Forum
1

Extending model by "common entity"

Serializable {     private String createdBy;     private Date createdAt;     private String modifiedBy;     private Date modifiedAt;     // (getters and setters here) } Then Entity1 and Entity2
Forum
1

Is there an administration tool with which I could create extra indexes?

the @index annotation in your entity class. Open the database with the up to date class in the classpath ... 2 may be skipped if you run the Doctor (step 3) with your up to date classes in the classpath. omi
Forum
1

java.lang.NullPointerException when using ORDER BY

the query are defined in RecordingMetaData as follows:     private Date startDateTime;     // Time stamp ... to use "order by r.startDateTime" we get the NullPointerException. Note that r.startDate is also a Date
Forum
1

java.sql.Timestamp with milliseconds

Using JPA with other providers java.util.Date will not provide support to store milliseconds, this can usually be overcome using (see here http://docs.oracle.com/javase/1.5.0/docs/api/java/sql ... .Timestamp, but I would like to use a single Date/Time field (ie, not milliseconds since the Epoch
Forum
1

java.sql.Timestamp.getTime() not working

of ObjectDB methods from java.sql types, including Time, Date and Timestamp are not supported directly ... or to use java.util.Date instead of Timestamp if applicable. mastervoland
Forum
1

Left join fetch behaviour doesn't retrieve children?

();   em.close();   em = emf.createEntityManager();   Long start = new Date().getTime ... end = new Date().getTime();   Long duration = (end - start) / 1000;   System.out.println
Forum
1

Mapped By Fetch is very Slow

();   Long start = new Date().getTime();     TypedQuery query = em.createQuery("SELECT m FROM ... .setMaxResults(10000).getResultList();   Long end = new Date().getTime();   Long duration = (end