Generating subclass in a single file, even super class source code is not 
avaliable
-----------------------------------------------------------------------------------

                 Key: XDP-210
                 URL: http://jira.codehaus.org/browse/XDP-210
             Project: XDoclet 2 Plugins
          Issue Type: New Feature
          Components: hibernate
         Environment: XDoclet2
            Reporter: Alan She


Since Hibernate support putting subclass in a single mapping file, it should 
better be supported in plugin-hibernate.

A typical use case is separating a system into several modules.
While developers of 'module B' do not need to see the code of 'module A' even B 
depends A.
When it comes to generating the hbm files. 'Module B' don't have the source of 
A, but it is
possible that some classes in B (e.g. Student) is a subclass of a class in 
module A (e.g. Person). At this time, putting <subclass> tag in the hbm of 
Person does not make sense (and impossible, because it don't have module A' s 
source now).
It is obvisously that in this case we should use a single hbm file which define 
the subclass Student and put this in module B.

Therefore, it is suggested that add a "extend" attribute for 
@hibernate.subclass, @hibernate.joined-subclass and @hibernate.union-subclass, 
and these tags are scaned for generating a hbm file if the "extend" attribute 
is provided.
While the "extend" attribute is provided, no matter the super class source file 
in or not in the fileset, a hbm file can be generated.

-- 
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

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to