-->
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.  [ 3 posts ] 
Author Message
 Post subject: <meta>
PostPosted: Wed Nov 26, 2003 7:13 am 
Beginner
Beginner

Joined: Mon Nov 24, 2003 11:47 am
Posts: 22
For web application I need more information about classes and properties (I need information about properly visualization on HTML page). I can add these information directly to myobject.hbm.xml into entity <meta>:

Code:
<hibernate-mapping>
<class name="Customer">
   <property name="FirstName" type="String">
     <meta attribute="htmlFormatterClass">htmlFormatters.NameHtmlFormatter</class>
   </property>
<class>
</hibernate-mapping>



How I can obtain these meta-information ? Must I parse xml file or I can receive this information from hibernate API ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 26, 2003 10:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
From memory the <meta> tags are not available from the Hibernate Meta data API. So you will have to parse it yourself. Have a look at the hbm2java tool as the meta tags were added for this tool.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 26, 2003 10:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
meta stuff will be available to the app in the final release of 2.1.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.