About Date

forum_thread

Possible issue with timestamps

Hi, If I query doing something like: select c from CDI c where c.creationDate > {ts '2012-03-29 11:00:00} and c.creationDate < {ts '2012-03-29 12:00:00'} the test fails. Its ONLY for 12:00:00. When I started digging I found that if I queried 00:00:00 to 00:25:00 and then did 12:00:00 to 12:25:00 I got IDENTICAL results. For some reason 12:00:00 is being treated the same as 00:00:00. All other hours seem to be fine. ... serialVersionUID = 1L ;   private Date creationDate = null ; private String firstname = ... ; this . creationDate = new Date ( ) ; }   public CDI ...

 
api-jpa

javax.persistence.Query

Interface used to control query execution.(Interface of JPA)

 
forum_thread

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains ... . toString ( ) ; final Date transTime = new Date ( ) ; // new Date(event.getSource().getTimestamp()); ...

 
release

2.3.4

Release date: 2011-11-25 Download (5.49 MB) Binary:  ... disabled by default). Added support of date methods ( YEAR , MONTH , DAY , HOUR , MINUTE , SECOND ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... ) ; lastUpdatedDate = new Date ( ) ; } I've managed to deduce ... Date) line: 1 Again this could all be my fault as I' modifying the ...

 
forum_thread

Corrupted Database or error in ObjectDBExplorer?

Hello, we have problems when we open our Database file with the ObjectDB-Explorer (2.6.8_b8). Can you analyze the problem and tell us if its a problem of the explorer or a real problem in the Database-File? An analysis with the DB-Doctor found no problems.   We observe the error if we try to open the Tree or Table Window for com.btc.ep.analysis.test.bl.internal.dmos.RequirementBasedTestCaseImpl  (its the 9th entity)   ... but somehow the Explorer doesn't have the up to date schema in the database. If this is the case, try to open the database with up to date schema (your entity classes and XML metadata if any) available in the the ...

 
release

2.3.2

Release date: 2011-10-25 Download (5.48 MB) Binary:  ... disabled by default). Added support of date methods ( YEAR , MONTH , DAY , HOUR , MINUTE , SECOND ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
release

2.2.2

Release date: 2011-04-22 Download (5.07 MB) Binary:  ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
api-jpa

javax.persistence.TemporalType

Type used to indicate a specific mapping of java.util.Date or java.util.Calendar.(Enum of JPA)

 
release

2.3.3

Release date: 2011-11-10 Download (5.49 MB) Binary:  ... disabled by default). Added support of date methods ( YEAR , MONTH , DAY , HOUR , MINUTE , SECOND ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...