Hi,
Im just having an issue with reverse engineering an existing db schema.
(Just after fixing part of the issue there)
Basically, when you want to use a table filter to include a set of tables using a wildcard but exclude tables within that subset, you HAVE TO have the exclude defined before the include such as :
<table-filter match-name="LA_ERRORMESSAGES" match-schema="LA" exclude="true"/>
<table-filter match-name="LA_.*"/>
If you have it the other way around, then it will include the above table. I think this could be better documented as it is not very obvious.
Also, it does not seem to pick up my particular type mappings. Basically, i don't want any primitive longs, ints etc in the application, i want to use the java.lang.Long instead. It doesn't do this for me, it keeps using a primitive. Can anyone see what i am doing wrong?
Thanks a lot for any help,
John
Hibernate version: 3.2.4.sp1
Mapping documents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<schema-selection match-schema="LA"/>
<type-mapping>
<sql-type jdbc-type="NUMERIC" precision="15" hibernate-type="big_decimal"/>
<sql-type jdbc-type="NUMERIC" hibernate-type="java.lang.Long" />
<sql-type jdbc-type="VARCHAR" length="1" hibernate-type="java.lang.Character"/>
<sql-type jdbc-type="VARCHAR" hibernate-type="string"/>
</type-mapping>
<table-filter match-name="LA_ERRORMESSAGES" match-schema="LA" exclude="true"/>
<table-filter match-name="LA_.*"/>
</hibernate-reverse-engineering>
Name and version of the database you are using: Oracle 10g
|