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

        Dan Adams created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Fix Version/s 5.1 [ 12312964 ]
        Summary Coercion from Hibernate entity -> String and back Provide automatic ValueEncoders and PrimaryKeyEncoders for Hibernate entities
        Dan Adams made changes -
        Assignee Dan Adams [ hagios17 ]
        Dan Adams made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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).
        Dan Adams made changes -
        Summary Provide automatic ValueEncoders and PrimaryKeyEncoders for Hibernate entities Provide automatic ValueEncoders for Hibernate entities
        Dan Adams made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Dan Adams made changes -
        Fix Version/s 5.0.11 [ 12312968 ]
        Fix Version/s 5.1 [ 12312964 ]
        Mark Thomas made changes -
        Workflow jira [ 12408714 ] Default workflow, editable Closed status [ 12568544 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568544 ] jira [ 12591587 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        228d 12h 18m 1 Dan Adams 03/Mar/08 01:52
        In Progress In Progress Closed Closed
        5d 13h 31m 1 Dan Adams 08/Mar/08 15:23

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development