-->
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.  [ 1 post ] 
Author Message
 Post subject: Feature Request. List<Annotation> getPropertyAnnotatio
PostPosted: Fri Jul 14, 2006 3:52 am 
Regular
Regular

Joined: Fri Jan 20, 2006 9:38 am
Posts: 61
Location: Notts, UK
I'm beginning to use org.hibernate.metadata.ClassMetadata

It's very useful having all the information about a persistent class available.

There is still quite a lot of information locked up in the class that isn't accessible through ClassMetadata.

Of course I have my own introspection utilities which examine our persistent classes, so that we can do a lot of automated stuff, but it would be good if we didn't need to - if we could rely on Hibernate's metedata.

So what I'm thinking of is a way of returning all the annotations that were applied either to a Field, or that Field's getter.

Code:
List<Annotation> getPropertyAnnotations(String propName);

List<Annotation>[] getPropertiesAnnotations();


For instance, we have an annotation against a Field that says that Field is the description for that entity (eg, country name, customer name etc) that would be displayed in a combobox/select. We have other annotations too, so we use our own introspection scheme.

I've opened a feature request at http://opensource.atlassian.com/project ... e/HHH-1908

Anyone care to vote for it? I think it would be useful.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.