convention « SQL « JPA Q&A





1. Best practice: best database naming convention for JPA?    stackoverflow.com

In Java the naming convention for properties en classes (entities) are done the CamelCase way:

@Entity 
public class UserMessage implements Serializable { 
    @Id 
   ...

2. Convention for naming domain objects in Hibernate via regular sql    stackoverflow.com

In a project I am working on, we have the convention that Hibernate objects (those that are mapped in *.hbm.xml files) end with the suffix "Hib". For exmaple, we'll have "UserHib", ...