[XDoclet-JIRA] Created: (XDT-1501) Does not support entity-name attribute

[email protected]
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1501

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1501
    Summary: Does not support entity-name attribute
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Glenn Korban

    Created: Thu, 11 Aug 2005 12:09 PM
    Updated: Thu, 11 Aug 2005 12:09 PM
Environment: win2k, jdk-1.4.2, ant-1.6.2

Description:
Hibernate allows you to create multiple entity mappings for the same class by using the "entity-name" attribute of the "class" element.  XDoclet should support this.  I'm not sure of the best way to implement this, but perhaps multiple @hibernate.class tags should be allowed per class with each providing the appropriate "entity-name".

For example:

/**
 * Generic value object for a sale.
 * 
 * @hibernate.class entity-name="CounterSale" table="SALES" where="SALE_TYPE='counter'"
 * @hibernate.class entity-name="PhoneSale" table="SALES" where="SALE_TYPE='phone'"
 * @hibernate.class entity-name="InternetSale" table="SALES"  where="SALE_TYPE='web'"		
 */
public class Sale implements Serializable {

[code omitted for brevity]

}

This could create the three separate entity mappings: CounterSale.hbm.xml, PhoneSale.hbm.xml, InternetSale.hbm.xml.  Each mapping would be identical except for the file name, the entity-name and the "where" value.

Perhaps adding a @hibernate.entity tag would be another way to implement this.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.