I generate Java classes with Hibernate Annotations from hibernate mappings with hbm2java target.
Hibernate Tools version: 3.2.0.b11
Mapping document:
<hibernate-mapping default-cascade="none" default-access="property" default-lazy="true"
auto-import="true">
<class name="com.essenhyp.ehcos.fibu.stammdaten.domain.F020Debitoren"
table="F02_0_DEBITOREN"
schema="UNIFIB"
mutable="true"
polymorphism="implicit"
dynamic-update="false"
dynamic-insert="false"
select-before-update="false"
optimistic-lock="version">
<meta ....
....
<filter name="funkyFilter" condition="F01_FIRMENNUMMER in (1,9)"/>
</class>
The problem is that the filter tag does not get generated as org.hibernate.annotations.Filter in the java class.
Generated Java Class:
// Generated 30.10.2007 19:34:53 by Hibernate Tools 3.2.0.b11
import ...
/**
* F020Debitoren generated by hbm2java
*/
@Entity
@Table(name="F02_0_DEBITOREN"
,schema="UNIFIB"
)
public class F020Debitoren
Is there any reason why the annotation does not get generated? Or is this simply a bug/missing feature?
Or maybe just me doing something wrong?
Anyway, thanks for any advice.
Ant code snippet:
<hibernatetool destdir="${hibernate.build.java.home}">
<classpath location="${xslt.unique.destdir}" />
<configuration configurationfile="${hibernate.build.hbmxml.home}/hibernate.cfg.xml" />
<hbm2java jdk5="true" ejb3="true" />
</hibernatetool>
|