I use entity bean without schema with sequence generator.
@Entity @SequenceGenerator(name = "SEQ_B_ID", sequenceName = "SEQ_B_ID") class B { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_B_ID") int id; }
I need two user, one for insert, and next for select (only select, is for web). In Oracle I have INS schema with table B and WEB schema with synonym B for table B from INS schema.
When I set "hbm2ddl.auto=validate" and run with WEB user catch org.hibernate.HibernateException: Missing sequence or table: SEQ_B_ID
It is important that, without hbm2ddl.auto (no presence, default) everything works.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ hibernate-issues mailing list hibernate-issues@(protected) https://lists.jboss.org/mailman/listinfo/hibernate-issues