I use the underscore prefixing field naming convention. When I create classes of annotated entities with such fields, I am stuck in using property names with prefix-prefix in queries. I want to avoid this and be able to:
@Entity public class Container { private String _value; }
Is this possible with JPA in general or Hibernate in particular?
Update: Trying to remember why, but I need it to be annotated by fields, not by getters.
source share