hi all,
i'm using hibernate with xdoclet and have come up against a problem with
back slashes.
my application server is jboss and is currently running on a windows server
(even though it will eventually be deployed on unix)
the problem is as follows :
xdoclet creates the following jboss-service.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!--
automatically generated by xdoclet. do not edit
-->
<server>
<mbean code="cirrus.hibernate.jmx.HibernateService"
name="jboss.jca:service=HibernateTest">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute
name="MapResources">com\yahoo\app\ymmg\hibernate\UserProfile.hbm.xml</attrib
ute>
<attribute name="JndiName">java:/hibernate/test</attribute>
<attribute name="Datasource">java:/testdatasource</attribute>
<attribute name="Dialect">cirrus.hibernate.sql.MySQLDialect</attribute>
<attribute name="UserName">root</attribute>
<attribute name="Password">password</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
</mbean>
</server>
note that the MapResources have back slashes in the path. when i deploy my
ear file and try to use it i get an error saying the .hbm.xml file can't be
found.
in postings on the hibernate forum i've seen a recommendation to set
prefixWithPackageStructure="false" and this i've done but it doesn't fix the
problem.
if i manually change the back slashes to forward slashes before i deploy it
works fine but obviously this is a bit of a hassle.
below is the hibernate target i'm using in ant if it helps :
<hibernatedoclet
destdir="${gen-src.dir}"
mergedir="${src.dir}"
excludedtags="@version,@author,@todo,@see"
addedtags="@xdoclet-generated at ${TODAY},${copy.right},@author
XDoclet,@version ${version}"
verbose="false">
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
<hibernate/>
<jbossservice
destdir="${meta-inf.dir}"
jndiname="java:/hibernate/test"
servicename="HibernateTest"
dialect="cirrus.hibernate.sql.MySQLDialect"
datasource="java:/${database.name}"
username="${database.username}"
password="${database.password}"
showSql="true"
prefixWithPackageStructure="false"
/>
</hibernatedoclet>
any ideas, solutions are greatly appreciated.
cheers,
colum.
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user