문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
java:hibernate:usertype:generic_enum [2014/10/02 16:39] kwon37xi 만듦 |
java:hibernate:usertype:generic_enum [2014/11/20 11:15] (현재) kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Hibernate Generic Enum UserType ====== | ====== Hibernate Generic Enum UserType ====== | ||
- | * Enum의 값을 단순 '' | + | * Enum의 값을 단순 '' |
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
줄 72: | 줄 72: | ||
Object identifier = type.get(rs, | Object identifier = type.get(rs, | ||
try { | try { | ||
- | return | + | Object resultValue = valueOfMethod.invoke(enumClass, |
+ | log.trace(" | ||
} catch (Exception exception) { | } catch (Exception exception) { | ||
throw new HibernateException(" | throw new HibernateException(" | ||
줄 83: | 줄 84: | ||
try { | try { | ||
Object identifier = value != null ? identifierMethod.invoke(value, | Object identifier = value != null ? identifierMethod.invoke(value, | ||
+ | log.trace(" | ||
st.setObject(index, | st.setObject(index, | ||
} catch (Exception exception) { | } catch (Exception exception) { |