[jboss-user] [EJB 3.0] - Re: hibernate and inheritance

2007-12-03 Thread p.chevillon
My DB is PostgreSQL. Any Idea ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109738#4109738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109738 ___ jboss-user mailing li

[jboss-user] [EJB 3.0] - Re: hibernate and inheritance

2007-12-04 Thread p.chevillon
I found a possible explanation to this problem. It seem's the discriminant is'n't used when requesting by a one-to-many in an subclass. So a way to make hibernate consider the hierarchy is to force control on the Discriminator column. With annotations, @Where should be used. @Where(clause="POI