How to get Column names of JPA entity
问题 All my JPA entity classes implement an interface called Entity which is defined like this: public interface Entity extends Serializable { // some methods } Some of the fields of my JPA entity have @Column annotation on top of them and some don't. MyEntity class is defined like below: @Entity public class MyEntity implements Entity { @Id private Long id; // Assume that it is auto-generated using a sequence. @Column(name="field1") private String field1; private SecureString field2; /