|
Dear I would like to map two catalog and put the mapping in a different package.
But it seem that the hibernatetools dtd do not allow to use multiple schema selection with table-filter
This do not works
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
<hibernate-reverse-ingineering>
<schema-selection math-catalog="DataBaseName1" />
<table-filter match-schema=".*" match-name=".*" package="foo" />
<schema-selection math-catalog="DataBaseName2" />
<table-filter match-schema=".*" match-name=".*" package="bar" />
</hibernate-reverse-ingineering>
This works but classes are into the same package
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
<hibernate-reverse-ingineering>
<schema-selection math-catalog="DataBaseName1" />
<schema-selection math-catalog="DataBaseName2" />
</hibernate-reverse-ingineering>
This works but only one catalog are selected:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
<hibernate-reverse-ingineering>
<schema-selection math-catalog="DataBaseName" />
<table-filter match-schema="FirstSchema" match-name="table-name1" />
<table-filter match-schema="SecondSchema" match-name="table-name2" />
</hibernate-reverse-ingineering>
These two previous example show that is not a syntax error.
I would like to know if is a limitation from the dtd or hibernatetools?
How to get a working configuration inspired by the first example?
regards
|