-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Tools for Hibernate 3.0.5 - Ant Tasks
PostPosted: Mon Aug 15, 2005 4:48 am 
Regular
Regular

Joined: Mon Nov 03, 2003 6:10 am
Posts: 75
First off - the documentation on the tools stuff is pretty good. Took me a little longer than expected to get the ANT stuff running, but the eclipse stuff was pretty straight forward. (Love the hsql table properties and data grids!) Too bad it doesn't work in IDEA :)

Anyway the reason I am writing is because:


1) I haven't seen any way to still use the XDoclet stuff with the new Tools package? Is there a no longer support. On a lighter note I have the EJB3 annotation stuff working and its cool.

2) I am having trouble filtering out Views in the ReverseEng strategy...

Code:
<jdbcconfiguration
     configurationfile="hibtools/jdbc/hibernate-mssql.cfg.xml"
     strategy="com.mydomain.hibernate.MyReverseEngineeringStrategy"
     revengfile="hibtools/jdbc/reveng.xml"
     packagename="com.mydomain.reveng" />


AND

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
    PUBLIC "-//Hibernate/Hibernate Reverse Engineering
    DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0dtd" . >

<hibernate-reverse-engineering>

<type-mapping>
         <sql-type jdbc-type="SMALLINT" hibernate-type="java.lang.Integer" />
       </type-mapping>

    <table-filter match-name="sys*" exclude="true" /> <!-- Exclude sys* tables from all catalogs/schemas -->
    <table-filter match-name="dtproperties" exclude="true" /> <!-- Exclude dtproperties table from all catalogs/schemas -->

</hibernate-reverse-engineering>



Is there going to be a:
Code:
<view-filter match-name="sys*" exclude="true" />

and
Code:
<table-filter match-type="system" exclude="true" />


because currently views and sytem tables all get mapped and I can't figure out how to stop it. The 'match-name' doesn't have any affect.

3)
Code:
<sql-type jdbc-type="SMALLINT" hibernate-type="java.lang.Integer" />


In my custom reveng.xml doesn't seem to work. I still end up with 'Short' in the mapping files.


p.s. on section 2.2 of the ANT Task Documentation

it has:

Code:
<configuration configurationfile="hibernate.cfg.xml"/>


but shouldn't it be:

Code:
<annotationconfiguration configurationfile="hibernate.cfg.xml"/>



Cheers and thanks for the great work...

Troy


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 15, 2005 5:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
#1 hibernate tools never included direct support for XDoclet.
Middlegen hibernate plugin generated xdoclet comments which hbm2java passed through.

If the community want XDoclet support builtin then i'm all open for contributions.

#2 the doc states you need to use .* and not just *

#2.1 view-filter is not needed. Read #2

#3 in the alpha4 you need also to specify a length, in cvs you don't.

#3 yes - already fixed in cvs

Thanks.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.