Hello,
I have a xml-based hibernate library and thought of using it within seam.
But when I want to use EJB3, I assume, that I need an anotation-based description.
But now I have the issue that all MS SQL Views (CREATE VIEW...) aren't found:
Reason: javax.persistence.PersistenceException:
org.hibernate.HibernateException: Missing table: TestView
The same code using an existing TestTable in @Table(name="TestTable") works.
Hence the schema and catalog in the persistence.xml is correct...
The xml-based notation works as well:
<hibernate-mapping> <class name="com.dcx.tscm.db.ComponentSets" table="ComponentSets" schema="dbo" catalog="tscm">
Apparently this is a hibernate bug
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2018
the good one for you is this was recently corrected :) just check out the last sources...