Hibernate

hibernate.hbm2ddl.auto
Automatically validates or exports schema DDL to the database when the SessionFactory is created. With create-drop, the database schema will be dropped when the SessionFactory is closed explicitly.
 * validate
 * update
 * create
 * create-drop


 * http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html

return only the communityId

 * Automatic schema generation

SequenceStyleGenerator
Using org.hibernate.id.enhanced.SequenceStyleGenerator ...  @Id @GeneratedValue(generator &#61; "SEQ_STORE") @GenericGenerator(name &#61; "SEQ_STORE", strategy &#61; "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters &#61; {           @Parameter(name &#61; "sequence_name", value &#61; "sequence"),            @Parameter(name &#61; "increment_size", value &#61; "1000"), @Parameter(name &#61; "optimizer", value &#61; "hilo") }) @Column(name &#61; "id") public int getId { return id; } ...

HibernateSystemException: Unknown entity
check your imports

correct
import javax.persistence.Entity; @Entity public class Application ....

wrong
import org.hibernate.annotations.Entity; @Entity public class Application ....