Announcement Announcement Module
Collapse
No announcement yet.
Spring Data and field prefix Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Use the current snapshot or wait until M3 is released, a lot of things have changed and it should work now

    Comment

    Working...
    X