On Nov 7, 2007, at 6:27 AM, Josef Cacek wrote:

Hello,
  I'm trying to switch to AppFuse 2.0 in the new project (I've used
1.94 before), but I have problem with type mapping in the file
hibernate.reveng.xml.
I don't want to use primitive number types in my model classes so I've
made following:

<hibernate-reverse-engineering>
<schema-selection match-catalog="MY_SCHEMA" match- schema="MY_SCHEMA" />

    <type-mapping>
        <sql-type jdbc-type="BIGINT" hibernate-type="java.lang.Long"/>
<sql-type jdbc-type="INTEGER" hibernate- type="java.lang.Long"/> <sql-type jdbc-type="NUMERIC" hibernate- type="java.lang.Long"/> <sql-type jdbc-type="SMALLINT" hibernate- type="java.lang.Short" />
    </type-mapping>

    <!-- BIN$ is recycle bin tables in Oracle -->
    <table-filter match-name="BIN$.*" exclude="true"/>

    <!-- Exclude AppFuse tables from all catalogs/schemas -->
    <table-filter match-name="APP_USER" exclude="true"/>
    <table-filter match-name="ROLE" exclude="true"/>
    <table-filter match-name="USER_ROLE" exclude="true"/>

</hibernate-reverse-engineering>

but it still uses "short" instead of java.lang.Short etc., when I call
'mvn appfuse:gen-model'.
File  hibernate.reveng.xml is used correctly because filters defined
there work well.

The filters you have listed are the same ones we have in the default hibernate.reveng.xml, so I don't know if your "it's being used" indicator is an accurate one.

The comments on the following issue may help you solve this problem:

http://issues.appfuse.org/browse/APF-902

Matt

(I use Oracle DB, but I hope, it's not source of the problem.)

Could you give me advice how to fix this problem, please?

Best Regards,

-- Josef Cacek

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to