i'm looking into overwriting the entity settings of the role object*
i have changed the hibernate.cfg.xml to:
<hibernate-configuration>
<session-factory>
<mapping class="org.appfuse.model.User"/>
<mapping resource="role.hbm.xml"/>
</session-factory>
</hibernate-configuration>
and i made the role.hbm.xml:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="org.appfuse.model.Role" table="app_role">
<id name="id" column="id">
<generator class="native"/>
</id>
<property name="name"/>
<property name="description"/>
</class>
</hibernate-mapping>
hibernate takes the file (it complains when it is not correct) but the
app_role table is not used.
instead the role table is used.
i will dive in deeper later but maybe someone has a brilliant idea? ;-)
ciao.
tibi
*why? because i want a different table name. i can add the class to my
project like this:
http://appfuse.org/display/APF/AppFuse+Core+Classes
but then copertura will not work any more. and i end op with classes in
my project which i don;t need.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]