[jboss-user] [JBoss Seam] - Re: Is @Entity required for Seam w/ Hibernate in Java EE

mcalello do-not-reply at jboss.com
Mon Jun 4 09:52:25 EDT 2007


Thanks Christian, 

anonymous wrote : It means exactly the opposite. You can use whatever you want wherever you want, it's all modular.

That is what I thought, but in the hibernate example, I get these errors when I remove these EJB3 annotations:
org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select username from User where username=:username]

So it appears to be serving a purpose in the example, and I had thought that the mappings in the hibernate.cfg.xml:
		<mapping class="org.jboss.seam.example.hibernate.Hotel"/>
  | 		<mapping class="org.jboss.seam.example.hibernate.User"/>
  | 		<mapping class="org.jboss.seam.example.hibernate.Booking"/>

would have served the same purpose. So is the hibernate example wrong, or is it just a little confusing?

Thanks for the help!
-Marc

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050964#4050964

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050964



More information about the jboss-user mailing list