-->
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: hbm2java does not generate Filter annotation
PostPosted: Tue Oct 30, 2007 5:06 pm 
Newbie

Joined: Tue Oct 30, 2007 4:25 pm
Posts: 1
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>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 2:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
its a missing feature - feel free to add support for it and provide a patch in jira. 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.