Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-18-2020 05:33 AM
Dear sirs or madams,
while loading plain dates with spring-data-neo4j formatted dates get converted into String while loading, please find below the code used for conversion, I was trying with a converter class and without following the the link:
forumlink
Blockquote
return value.toInstant()
.atZone(ZoneId.systemDefault())
.toLocalDate();
Blockquote
match(n:PERSON) where n.source = 'MANUALLY CREATED' return n.name,n.birthDate,apoc.meta.type(n.birthDate);
results in
---------------------------------------------------------------------------
|n.name |n.birthDate |apoc.meta.type(n.birthDate)|
|-----------------------------------------|-----------------|--------------|
|"MAXIMILIAN MUSTERFRAU"|"2020-06-01"|"STRING"|
|"MAX MUSTERFRAN "|"2018-10-02"|"STRING"|
Driver Version:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.2.8</version>
</dependency>
Is there any chance to get the data into the database as dates as expected.
Any help is appreciated.
Thanks in advance.
Malte R
Solved! Go to Solution.
06-18-2020 02:09 PM
Hello @MalteR, nice to meet you.
I didn't use spring in the last year but I think that probably you've to try this solution from @gerrit.meier.
Check if your using correctly native types, please.
If that is operative and not work as expected, I will help you in other way (I've to create a little test before, so I'll need some hours and tomorrow I'll be a lot busy, so I'll try in weekend).
06-18-2020 02:09 PM
Hello @MalteR, nice to meet you.
I didn't use spring in the last year but I think that probably you've to try this solution from @gerrit.meier.
Check if your using correctly native types, please.
If that is operative and not work as expected, I will help you in other way (I've to create a little test before, so I'll need some hours and tomorrow I'll be a lot busy, so I'll try in weekend).
06-19-2020 01:31 AM
Thank you very much for your effort at such a late time (at least in my timezone)
I will try it out accordingly...
I will give feedback if it worked out.
Cheers,
MalteR
06-20-2020 01:46 AM
06-20-2020 02:25 AM
All the sessions of the conference are now available online