Announcement Announcement Module
Collapse
No announcement yet.
Solr JPA Help Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Solr JPA Help

    I have a JPA class annotated with a composite id like so:

    Code:
    @Embeddable
    class EntityPK {
        @Field  // solr field
        private String prop;
    
        @Field // solr field
        private String prop2;
    }
    
    @Entity
    class Entity {
        @EmbeddedId
        private EntityPK id;
    
    }
    I can retrieve records from Solr with this setup but the data received is not getting mapped back into the EntityPK properties. What is the best way to handle this situation with Spring Data Solr? Do I need to implement some custom mapping class?

  • #2
    Please, move your question to the StackOverflow - we are going to close this forum soon and rely on SO.
    We need to clean this forum (old unanswered question) before close it.

    Thanks for understanding

    Comment

    Working...
    X