Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Spring Data Graph: @Indexed on super type?

  1. #11
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    So far only using an explicit index name. Which would then be the same for all subclasses. Or push the field down to the actual domain classes.

    Have quickly looked into the issue, the problem being that right now the current type (domain class) is not used at all at the internal, field-level API, so I have to change and extend that API for this to work.

    As I'm going to rework this part anyway, it would be sensible to do that in the 1.2. timeframe using the Spring-Data-Commons mapping facilities (i.e. convenient analysis of reflection based meta-information of persistent types).

  2. #12

    Default

    ractive:

    There is a workaround, either you query the index manually or create a repository for the class which contains the property. See the testcase on the jira issue.

    Regards,
    Stefan

  3. #13
    Join Date
    Oct 2006
    Location
    Zürich
    Posts
    101

    Default

    Thanks. I'm getting the index of the NamedEntity.class now manually and it seems to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •