> On 23 Mar 2015, at 17:04, Dr Josef Karthauser 
> <[email protected]> wrote:
> 
> I’m still struggling with policy mapping with Spring-Neo4j-Data:
> 
> This works:
> 
>        neo4jTemplate.createEntityFromStoredType(node,
>                neo4jTemplate.getMappingPolicy(MyClass))
> 
> Whereas this doesn’t work:
> 
>        neo4jTemplate.createEntityFromStoredType(node, null)

Interestingly, if I warm things up by running:

        [MyClass, MyClass2, MyClass3].each {
                neo4jTemplate.getMappingPolicy(it)
        }

then 

>       neo4jTemplate.createEntityFromStoredType(node, null)

works for any of the nodes related to classes I prewarmed.

Bug? Or a wiring issue? Shouldn’t the spring wiring cause a pre-scan of my 
domain classes and do this for me?

Joe.


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to