[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-946?page=co...
]
Hashim Kubba commented on HBX-946:
----------------------------------
I tried <table-filter match-name=".*" match-catalog=".*"
match-schema=".*"> and it did not work
Also i have :
<type-mapping>
<sql-type jdbc-type="DECIMAL" hibernate-type="double"
precision="10" scale="3" not-null="true">
</sql-type>
</type-mapping>
when I add the table-filter tag it doesn't work and i get my types as BigDecimal, when
I remove the type-filter it works and i get them as double
Add a general meta for all the tables in the database, see [HBX-575]
--------------------------------------------------------------------
Key: HBX-946
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-946
Project: Hibernate Tools
Issue Type: Improvement
Components: reverse-engineer
Affects Versions: 3.2beta9
Environment: using eclipse 3.2.2
JDK 1.5
hibernate tools 3.2beta9
h2 database ver 1.0
Reporter: Hashim Kubba
Priority: Minor
I'm adding meta attributes in reveng.xml (HBX-575) for customization of the resulting
Java code from a reverse engineered database. yet I would really like to be able to add a
general class-description to all my classes ( say @ Auther or @version ) , even better; I
want all my classes to extend BasicDataObject where I can add some static final constants
to use, but now I have to add that to each table
<hibernate-reverse-engineering>
<table name="FOO">
<meta attribute="extends">BasicDataObject</meta>
</table name>
<table name="BOO">
<meta attribute="extends">BasicDataObject</meta>
</table name>
...
</hibernate-reverse-engineering>
What I would like to see is something like
<hibernate-reverse-engineering>
<meta attribute="extends">BasicDataObject</meta>
</hibernate-reverse-engineering>
and that will make all my classes extend BasicDataObject; metas that can be used directly
under hibernate-reverse-engineering are:
* class-description general comment for all classes
* implements implements a common interface with constants
* extends extends a common class with constants and common methods
* scope-class make all classes protected
* scope-set all sets in all classes
* scope-get all gets in all classes
A nice to have will be:
* generated-class-suffix
* generated-class-prefix
or <meta name="generated-class" suffix="suffix"
prefix="prefix" />
that will allow me to control all the classes names
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira