-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date saved but retrieved null in ElementCollection (or Embedded) property #1000
Comments
Hi @milosjajac, I will try to replicate this on Monday. -Dev |
Hi @milosjajac, working fine for me.
|
Thank you @devender-yadav for getting back to this. I have tried your example and it does work when I use
One more thing I have noticed aside from this is that closing the I could not find any information on these two matters when reading the docs. |
Hi @milosjajac, Seems like an issue from Kundera side. |
Hi @milosjajac, This issue is fixed and will be available in the next Kundera release. |
I have an object of type
Instance
which contains an@ElementCollection
of typeDatapoint
. Each datapoint has a timestamp and a value. In a test, I create some instances with their datapoints and save them, however, when I read any of those instances back from the database, the value for datapoints is set but the timestamp is null.I am using:
Cassandra 3.11.2
Kundera 3.12
persistence.xml
Datapoint.java
Instance.java
So what I do is:
Instance
, create aList<Datapoint>
, set it to instance and persist the instanceEntityManager
'sfind
method to fetch an instance by itsuuid
, and it contains all values, including thedate
column, and its datapoints contain their values but thetimestamp
field in every datapoint isnull
.I have also tried to use
@Embedded
and only 1Datapoint
instead of a list and the result is the same,timestamp
isnull
.What did I miss?
The text was updated successfully, but these errors were encountered: