Seam 2
  1. Seam 2
  2. JBSEAM-3424

Support Hibernate in IdentityManager

    Details

    • Type: Feature Request Feature Request
    • Status: Open Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0.BETA1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      The JpaIdentityStore could easily work with hibernate also. If you abstracted out the EntityManager and the hiberate Session from the JpaIdentityStore kind of like the AbstractEntityLoader does for the EntityConverter, you could continue to use the JpaIdentityStore for both JPA and Hibernate. Although you would probably want to rename JpaIdentityStore

      1. seamspaceChanges.txt
        1 kB
        Scott Olcott
      2. securityChanges.txt
        26 kB
        Scott Olcott
      3. securityXsdChanges.txt
        2 kB
        Scott Olcott

        Activity

        Hide
        Scott Olcott
        added a comment -

        Here are some patches which I have created to demonstrate this. Please feel free to change anything or provide suggestions

        Show
        Scott Olcott
        added a comment - Here are some patches which I have created to demonstrate this. Please feel free to change anything or provide suggestions
        Hide
        Scott Olcott
        added a comment -

        Sorry, I forgot to implement createQuery in HibernateIdentityStoreEntityLoader. Here it is:

        @Override
        public Query createQuery(String queryString, Map<String, Object> queryParameters)

        { Query query = getPersistenceContext().createQuery(queryString); setQueryParameters(queryParameters, query); return query; }
        Show
        Scott Olcott
        added a comment - Sorry, I forgot to implement createQuery in HibernateIdentityStoreEntityLoader. Here it is: @Override public Query createQuery(String queryString, Map<String, Object> queryParameters) { Query query = getPersistenceContext().createQuery(queryString); setQueryParameters(queryParameters, query); return query; }
        Hide
        Simon Gibbs
        added a comment -

        I need to use Hibernate directly, but would like to avoid writing my own identity store to read identity from the database - so it seems as though I need to work around this issue until its fixed.

        Are there any work arounds available yet?

        Show
        Simon Gibbs
        added a comment - I need to use Hibernate directly, but would like to avoid writing my own identity store to read identity from the database - so it seems as though I need to work around this issue until its fixed. Are there any work arounds available yet?

          People

          • Assignee:
            Shane Bryzak
            Reporter:
            Scott Olcott
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: