-
Aug 14th, 2012, 01:27 PM
#1
Neo4j: Inheritence - get correct child (type)
Hi,
i am using Spring Data Neo4j, Snapshot.
I have two entities, where one is the motherclass:
@NodeEntity
ClassA {...}
@NodeEntity
ClassB extends ClassA {...}
When retrieving an entity, i am using neoTemplate.findOne(id, ClassA.class). Retrieved object is always of type ClassA. How do i get the object to be of type ClassB, if the object is of that kind? You see, i am searching for a kind of factory.
Greetz,
Markus
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules