When using hibernate.component, it would really useful if column names for the 
component's properties are specified in the parent class and not in the 
component class
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: XDP-88
         URL: http://jira.codehaus.org/browse/XDP-88
     Project: XDoclet 2 Plugins
        Type: Improvement
  Components: hibernate  
    Versions: 1.0.3    
 Reporter: Ricardo Olivieri
    Priority: Critical
     Fix For: 1.0.3


This is my situation:

I have a class A (this is my component class) that can be part of different 
entity classes (classes that are persisted by hibernate). Classes B,C, and D 
(which are my entity classes) can contain one or more instances of class A as a 
property. Class A, being a component class, is persisted along with its parent 
class in the same table. The issue I have is that the column names used in the 
parent classes for the component properties (class A's properties) are 
different... they are not simply and cannot be the same. For instance, let's 
say class A has 3 properties. Then, class B might use aaa, bbb, ccc as the 
column names to persist the three properties of class A while class C might use 
zzz, yyy, xxx as the column names to persist the properties of class A. So, 
speciying the column names in class A does not work for me. Note that the 
prefix parameter of the hibernate.component tag does not help in this case. I 
would need a way to define the column names for the properties of class A in 
the parent class along with the hibernate.component tag.

Is this a change that could be made to the hibernate plugin? If so, how long 
would it take?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, 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
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to