Let\'s say I have entity Foo like -
package com.some.company.model; // imports @Entity public class Foo{ @Id private Long id; // getters / s
There is no point to use the fully qualified name because Hibernate won't allow duplicate entity names. So if you had different entities with the same name, in different packages. Hibernate will throw a DuplicateMappingException.