[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-796) table-filter exclude not work

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Thu Nov 2 04:21:04 EST 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-796?page=all ]
     
Max Rydahl Andersen closed HBX-796:
-----------------------------------

    Resolution: Rejected

sorry for not seeing this sooner:

<table-filter match-name="T_SA_*" exclude="false"/>

should be

<table-filter match-name="T_SA_.*" exclude="false"/>


notice the dot. The syntax for matching is "regular expression"-style.


> table-filter exclude not work
> -----------------------------
>
>          Key: HBX-796
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-796
>      Project: Hibernate Tools
>         Type: Bug

>   Components: reverse-engineer
>     Versions: 3.2beta8
>  Environment: windows xp sp2, jdk 1.4.2, eclipse 3.1.2, ant 1.6.5, hibernate tools beta8, hibernate 3.2 ga 
>     Reporter: jacky hua
>  Attachments: TitanStrategy.java, hibernate.cfg.xml, hibernate.reveng.xml
>
>
> I used ant task provided by hibernate-tools like the below:
> <target name="default" description="generate hbm">
> <delete dir="./generate"/>
> <mkdir dir="./generate"/>
> <hibernatetool destdir="./generate">
> <jdbcconfiguration
> configurationfile="./metadata/hibernate.cfg.xml"
> revengfile="./metadata/hibernate.reveng.xml"
> packagename="net.ema.examples.sa"
> detectmanytomany="true"
> detectoptimisticlock="true">
> </jdbcconfiguration>
> <hbm2hbmxml destdir="./generate" />
> </hibernatetool>
> </target>
> In hibernate.reveng.xml, I defined a table-filter rule like the below:
> <!-- include tables -->
> <table-filter match-name="T_SA_*" exclude="false"/>
> but if I added these lines, I would get none genreated hbm files, otherwise if I didn't add, it worked. And BTW in my database schema all tables's name was prfixed with "T_SA_".
> anybody can help me?

-- 
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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list