[ http://jira.jboss.com/jira/browse/EJBTHREE-68?page=history ]
     
Bill Burke closed EJBTHREE-68:
------------------------------

    Resolution: Done

> EJB3 Preview 3 broke joined-subclasses
> --------------------------------------
>
>          Key: EJBTHREE-68
>          URL: http://jira.jboss.com/jira/browse/EJBTHREE-68
>      Project: EJB 3.0
>         Type: Bug
>     Versions: Preview 3
>  Environment: JBoss 4.0.1, EJB3 Preview Release 3
>     Reporter: ttarhan
>     Assignee: Bill Burke
>      Fix For: Preview 4

>
> Original Estimate: 1 hour
>        Time Spent: 30 minutes
>         Remaining: 5 minutes
>
> In short, the problem is that the @Table annotation is ignored in subclasses 
> when using the JOINED strategy. 
> Best described by example. Take three classes: Account, BillingAccount, and 
> ProductAccount. The latter two classes inherit from the first class using the 
> JOINED strategy. All three classes also have a @Table annotation to specify 
> the table name. In the case of the class "Account", the table name is 
> "accounts". In the case of the class "BillingAccount", the table name is 
> "accounts_billing" and in the case of the class "ProductAccount", the table 
> name is "accounts_products". 
> The problem is seen in this output from the server log. Notice that the 
> @Table attribute is honored for the superclass, but ignored for the 
> subclasses (instead, the default table name, which is the same as the class 
> name, is used). 
> 15:04:38,096 INFO [HbmBinder] Mapping class: Account -> accounts 
> 15:04:38,100 INFO [HbmBinder] Mapping joined-subclass: ProductAccount -> 
> ProductAccount 
> 15:04:38,103 INFO [HbmBinder] Mapping joined-subclass: BillingAccount -> 
> BillingAccount

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to