I'm trying to follow the PFD spec. on setting up my @SqlResultSetMapping for a native query, and there seems to be some minor deviation from the spec. with regard to the EntityResult annotation. It's not getting in my way, but I thought I'd point it out all the same.
Spec:
public @interface EntityResult { Class entityClass(); FieldResult[] fields default {}; String discriminatorColumn() default ""; }
public abstract @interface EntityResult { public abstract String name(); public abstract String discriminatorColumn(); public abstract FieldResult[] fields(); }
Yes, we missed that one. And Yes it will still work as advertised except you will pass in the FQN of the classname as a string