Results 1 to 2 of 2

Thread: Spring Data and field prefix

  1. #1
    Join Date
    Jun 2009
    Location
    Santiago, Chile
    Posts
    3

    Question Spring Data and field prefix

    Hi:

    I have some class mapped to ORM (JPA/Hibernate) but when I try to save the object with spring-data, I not have results. In the mongodb's logs don't have any errors (connect but not insert the object) and I not have exception in java layer. Well, finally I found the error, my class fields (attributes) start with the prefix _

    So... the question is... Can I use this classes without change the fields prefix? I don't want change all my code because they are a lot of entities that I would like to use (without change much).

    I hope that exist any solution

    I use the org.springframework.data:spring-data-mongodb:1.0.0.M2

    Thanks

  2. #2

    Default

    Use the current snapshot or wait until M3 is released, a lot of things have changed and it should work now

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
  •