-->
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: Better diagnostic / warning messages?
PostPosted: Tue Oct 25, 2005 4:16 am 
Newbie

Joined: Mon Oct 24, 2005 2:19 pm
Posts: 10
It would be very nice if Hibernate could have better diagnostic output.
A couple of times we have been wasting hours of work because some aspect of the annotations was wrong and we were just clueless about it.

Recently we had an Embeddable class and used annotations on its fields, but forgot to specify the access type FIELDon the embeddable class. (None of the examples show this and intuitively I assumed that the same access type is used for the embedded class as for the embedding class.)

So this is one example:
If annotations are defined on fields, but the access type is PROPERTY than please output an error (and vice versa of course).

Annother example:
If you specify a wrong field attribute name in AttributeOverride, there is no warning whatsoever. Hibernate happily ignores the annotation completely.

Better diagnostics could really save hibernate users lots of work...


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.