karishma-tirthani / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

JPAProducer Null-values for java.util.Date not working #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an entity with a temporal column, e.g.   
@Temporal(TemporalType.TIMESTAMP)
  @Column(name = "P_DELETED_AT")
  private Date              deletedAt;

2. Create a entity with a null value, either by code or SQL
3. Edit the entity using the odata layer leaving this field empty (null)

What is the expected output? What do you see instead?
My expectation is that the column will be null after the operation completes, 
instead it contains the current timestamp.
Reason for this is in OProperties.datetime(String name, Date value) 
which doesn't consider null values.

What version of the product are you using? On what operating system?
Version 0.5, OS: Windows XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by tsuki.fa...@gmail.com on 31 Jan 2012 at 9:17

GoogleCodeExporter commented 8 years ago
Please use latest version of odata jars. this issue has been resolved.

odata4j-master0.7 this is the latest

Original comment by rajnishk...@gmail.com on 9 Jan 2013 at 7:34