Skip to main content

[jpa-spec issues] Class argument missing from convertToEntityAttribute

  • From: < >
  • To:
  • Subject: [jpa-spec issues] Class argument missing from convertToEntityAttribute
  • Date: Sat, 26 Oct 2013 14:49:38 +0000 (UTC)

I think the JPA 2.1 team messed up the method signature for 
convertToEntityAttribute.  

I think it should have been:
public T convertToEntityAttribute(Class<T> clazz, Serializable arg0)

That way, a single converter could be designed to handle multiple
enums.  As it stands now, I can not find a way to NOT have a @Converter
for each enum that I want to persist.
 
Is there some reason, the JPA 2.1 team left the Class argument out in
such an important place?  It seems like it would be easy for
implementations to pass in.


[jpa-spec issues] Class argument missing from convertToEntityAttribute

bobthule 10/26/2013
 
 
Close
loading
Please Confirm
Close