Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Enumeration support to InternalUtil.convertIfNeeded() #103

Open
GoogleCodeExporter opened this issue Dec 18, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

This method currently doesn't support any method of coercing values into 
enumerations.

would you mind adding something like:

if(type.isEnum() && value instanceof String ) {
  return Enum.valueOf((Class<? extends Enum>) type, (String) value);
}

or fancier at at your leisure somewhere at the top of this method?

As an aside, I like your library a lot, but the internal static singleton 
factory nature of a some of the classes combined with private constructors, 
make this library hard to extend and adapt (e.g HibernateSearchProcessor, 
HibernateMetadataUtil and more) would you mind making them more Spring wiring 
friendly?

Original issue reported on code.google.com by barrett....@gmail.com on 1 May 2013 at 5:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant