Tapestry
  1. Tapestry
  2. TAPESTRY-1653

Provide automatic ValueEncoders for Hibernate entities

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-hibernate
    • Labels:
      None

      Description

      Add a coersion for hibernate entities so that they will get coerced to a string as something like:

      entity:com.company.Entity:5

      which when coerced back to an entity will use the session to read the type com.company.Entity with id #5. This may be a sub-task of TAPESTRY-1318.

        Activity

        Hide
        Dan Adams added a comment -

        Just as an update; I've got the initial version of this working and it's great. Works like a charm. Unfortunately there are a bunch edge cases and error conditions I need to test for before being able to call it finished. But it looks like it will work great (and as a side note, the encoded version is just the id so it's very short and concise).

        Show
        Dan Adams added a comment - Just as an update; I've got the initial version of this working and it's great. Works like a charm. Unfortunately there are a bunch edge cases and error conditions I need to test for before being able to call it finished. But it looks like it will work great (and as a side note, the encoded version is just the id so it's very short and concise).

          People

          • Assignee:
            Dan Adams
            Reporter:
            Dan Adams
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development