convention « SQL « JPA Q&A

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

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

public class UserMessage implements Serializable { 

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

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", ...