March,

could you try to test this on snapshot?

I solved an issue regarding that.

I'll add the test you mentioned as well

Thanks for the feedback.

Michael

mobile mail please excuse brevity and typos

Am 04.11.2011 um 23:00 schrieb Marcin Zasepa <se...@vp.pl>:

> Hi guys,
> i just migrated from SDG 1.1 to 2.0.0.M1 and I am facing problem with
> cross-store functionality. I have some entities which are partially stored
> in Neo and partially in rdbms. Everything works ok so far entity class has
> only primitive members or sets of other entities mapped using @RelatedTo
> annotation. Problems begin if I have one entity /A/ with partial=true which
> refers with @OneToMany another entity /B/ which is "pure" JPA entity. Trying
> to save entity *A *i get an exception: "Type class B is neither a
> @NodeEntity nor a @RelationshipEntity".This kind of mappings worked properly
> with SDG 1.1. In order to reproduce this problem in environment independent
> from my application i add simple relation to the User test class in
> spring-data-neo4j-cross-store tests: 
> @Entity
> @NodeEntity(partial = true)
> public class User {
>   .....
>  @OneToMany(mappedBy="user")
>    private Set<Location> locations;
> }
> , where Location class is defined as follows:
> @Entity
> @Table(name = "LOCATION")
> public class Location {
> 
>    @Id
>    @GeneratedValue(strategy = GenerationType.AUTO)
>    @Column(name = "id")
>    private Long id;
>    
>    @ManyToOne
>    @JoinColumn(name="userId")
>    private User user;
>    
> }
> 
> Running ReccomendationTest after this changes, causes that the first test
> fails with an exception:
> org.springframework.data.neo4j.mapping.InvalidEntityTypeException: Type
> class org.springframework.data.neo4j.partial.Location is neither a
> @NodeEntity nor a @RelationshipEntity. What is even more interesting is that
> it happens only to the first run test, that is why two other test are not
> failing but if i invoke only one test for example the second one:
> jpaUserCanHaveGraphProperties then it fails with the same exception. 
> Could you have a look on that and let me know if I am something changed in
> SDG 2.0 or it is indeed bug.
> Thanks in advance! Greets.
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/SDG-2-0-0-M1-cross-store-does-not-work-properly-tp3481372p3481372.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to