Results 1 to 3 of 3

Thread: Does Spring Data JPA support QBE?

  1. #1
    Join Date
    Sep 2008
    Posts
    24

    Default Does Spring Data JPA support QBE?

    QBE in conjunction with search criteria is the most powerful query approach to me. Will Spring Data JPA eventually support the types of queries that SpringFuse generates - extended QBE that matches not only fields but relationships, plus date range criteria?

  2. #2
    Join Date
    Mar 2009
    Location
    Ajaccio, France
    Posts
    25

    Default

    Hello,

    It would be great indeed to add Query By Example support directly in Spring Data JPA.

    Currently, our QBE approach supports only fields, see for example:
    https://github.com/jaxio/generated-p...ification.java

    Note that we also support any range thanks to this code:
    https://github.com/jaxio/generated-p...ification.java

    You can then mix the example and the range specification...

    This is indeed quite powerful. If you have some idea on how to take relationship into account, we'd be happy to implement it.

    Nicolas.

  3. #3
    Join Date
    Sep 2008
    Posts
    24

    Default

    The code generated by SpringFuse - a RAD tool, explicitly maps foreign keys to entity attributes aside from the corresponding relationships, so that QBE covers entity attributes as well as the foreign keys (relationship), very handy approach.

Posting Permissions

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