I'm needed two features that is not in the current CVS head for hibernate.

 

  1. The formula parameter for the descriminator.
  2. A merge file for additional mappings in the configuration.  I have a configuration with multiple schemas and I create configuration for each schema.  There are circumstances that creates grants from one schema to another and would like access to those tables through the schema granted access but it is usually selective.  So the idea is to create a merge point at the end of the mapping to include any mappings from the other schema/configuration that I need in the current one.  When compiled all the code is joined in libraries so the available classes are there.

 

Diff for the first feature:

diff -u -r ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/META-INF/xtags.xml ./xdoclet/modules/hibernate/src/META-INF/xtags.xml

--- ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/META-INF/xtags.xml   2006-10-17 12:48:02.457069200 -0500

+++ ./xdoclet/modules/hibernate/src/META-INF/xtags.xml            2006-10-17 13:09:04.436672400 -0500

@@ -1362,6 +1362,13 @@

                         </option-set>

                     </option-sets>

                 </parameter>

+                <parameter type="text">

+                    <name>formula</name>

+                    <usage-description>

+                        Formula to determine the descriminator

+                    </usage-description>

+                    <mandatory>false</mandatory>

+                </parameter>

             </tag>

 

             <tag>

diff -u -r ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-discriminator.xdt ./xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-discriminator.xdt

--- ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-discriminator.xdt 2006-10-17 12:48:02.675794000 -0500

+++ ./xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-discriminator.xdt          2006-10-17 12:55:34.108158000 -0500

@@ -18,5 +18,8 @@

     <XDtClass:ifHasClassTag tagName="hibernate.discriminator" paramName="insert" superclasses="false">

             insert="<XDtClass:classTagValue tagName="hibernate.discriminator" values="true,false" paramName="insert" default="true" />"

     </XDtClass:ifHasClassTag>

+    <XDtClass:ifHasClassTag tagName="hibernate.discriminator" paramName="formula" superclasses="false">

+            formula="<XDtClass:classTagValue tagName="hibernate.discriminator" paramName="formula" />"

+    </XDtClass:ifHasClassTag>

         />

 </XDtClass:ifHasClassTag>

 

Diff for the second feature:

diff -u -r ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-cfg.xdt ./xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-cfg.xdt

--- ../xdoclet-cvs-orig/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-cfg.xdt   2006-10-17 12:48:02.613301200 -0500

+++ ./xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-cfg.xdt            2006-10-17 12:51:00.217838800 -0500

@@ -67,6 +67,14 @@

                        <XDtHibernate:forAllPersistentClasses>

                                    <mapping resource="<XDtPackage:packageNameAsPath/>/<XDtClass:className/>.hbm.xml"/>

                        </XDtHibernate:forAllPersistentClasses>

+

+                <XDtMerge:merge file="hibernate-extra-mapping.xml">

+                    <!--

+                        To add non XDoclet property mappings, create a file named

+                            hibernate-extra-mapping.xml

+                        containing the additional mappings and place it in your merge dir.

+                    -->

+                </XDtMerge:merge>            

           

                        <XDtHibernate:forAllOtherMappings>

                                    <mapping <XDtHibernate:otherMappingName/>="<XDtHibernate:otherMappingValue/>"/>

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to