[hibernate-dev] what should happen when there are two entities exactly same except the class name?

Steve Ebersole steve at hibernate.org
Wed Jul 17 10:16:40 EDT 2013


I have to agree, I don't understand how these can be mapped to the same 
table this way.  Looking at them, it is not evident what the intent here 
was.

Ultimately, when reading a given row from the db we have no clue which 
entity to use.

On 07/16/2013 10:50 AM, Strong Liu wrote:
> talking about org.hibernate.test.annotations.manytoonewithformula.ManyToOneWithFormulaTest
>
> org.hibernate.test.annotations.manytoonewithformula.ProductSqlServer  AND org.hibernate.test.annotations.manytoonewithformula.Product
>
> these two are exactly same ( has same @Table(name="product") and others ) except the class name different
>
> is it valid?
> -------------------------
> Best Regards,
>
> Strong Liu <stliu at hibernate.org>
> http://about.me/stliu/bio
>
>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list