-->
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: Boolean access methoden -> "get" statt "is
PostPosted: Thu Jun 29, 2006 6:20 am 
Newbie

Joined: Thu Jun 29, 2006 6:14 am
Posts: 2
Hallo!

Ich nutze das Eclipse-Plugin "HibernateSynchronizer" um die Hibernate Klassen generieren zu lassen.
Für Properties, die in den Mapping-Files als boolsche Werte definiert sind, werden nicht get/set Methoden, sondern is/set Methoden generiert.
Leider ist JSTL (in einer JSP View) aber nicht klug genug, nach einer "is" Methode zu gucken, wenn keine get-Methode vorhanden ist.

Kann mir jemand sagen, wie ich anstelle von is-Methoden get-Methoden für boolsche Werte bekomme?

Danke!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 29, 2006 10:13 am 
Newbie

Joined: Thu Jun 29, 2006 6:14 am
Posts: 2
Habe es gefixt.
Für die Nachwelt:

Eclipse->Preferences->Hibernate Synchronizer->Snippets->Common->Getter

Edit:
${prop.GetterName} () {

---->

get${prop.PropName} () {


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.