We need a fix for Hibernate issue HHH-4257

Solution Verified - Updated -

Issue

  • I've got a collection of elements.  Both the key and value in this case are enum classes.  The key seems to be the problem here.  The first error I get is that getBytes() cannot be applied to an integer field (the db schema has an integer, as was used in previous versions of Hibernate).

    @CollectionOfElements(fetch = FetchType.EAGER)
    private Map<SomeEnum, SomeOtherEnum> someMap;
    
  • We need a fix for http://opensource.atlassian.com/projects/hibernate/browse/HHH-4257

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3_CP07
  • JBoss Hibernate (Included in the EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.