[ http://jira.codehaus.org/browse/XDP-88?page=comments#action_61010 ]
Michael Plöd commented on XDP-88: --------------------------------- I'm not too familiar with xdoclet plugin development but I will have a try.... Regarding your last post with the context parameter: Did you think of something like this: ...... @hibernate.component class="MyComponent" property_context="myComp" @hibernate.property name="propA" property_context="myComp" column="prop_a" @hibernate.property name="propB" property_context="myComp" column="prop_b" private MyComponent comp; ..... > 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.2 > Reporter: Ricardo Olivieri > Assignee: Konstantin Pribluda > Priority: Critical > Fix For: 1.0.4 > > > 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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
