Language/Java (1) 썸네일형 리스트형 Reflection API - Method.invoke() exception. object is not an instance of declaring class . Hibernate 의 UserType 확장을 이용하여 Enum 타입의 객체를 원하는 값으로 맵핑하고자 한다. 즉, 다음과 같은 Enum 이 있을 경우 public enum EventGranularity { VERY_FINE(new Integer(1000)), FINE(new Integer(100)), COARSE( new Integer(10)), VERY_COARSE(new Integer(1)); private Integer intValue; public Integer getGranularity() { return intValue; } private EventGranularity(Integer intValue) { this.intValue = intValue; } public EventGranularit.. 이전 1 다음