-->
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: Common mistakes detector
PostPosted: Fri Oct 21, 2011 8:14 am 
Newbie

Joined: Fri Oct 21, 2011 8:04 am
Posts: 1
It would be a very cool feature to have some sort of common errors detector in place and log warnings as issues are detected.
It should be optional of course and it would be turned off in production.
Specifically I though of this when reading this blog: http://management-platform.blogspot.com ... d-jpa.html

Here we have a very specific problem. query.setFirstResult(startRow), and query.setMaxResults(pageSize) are used which indicates the developer is probably implementing paging. But query contains no ORDER BY clause.

It's an easy to detect situation. It requires some kind of event model in place, and ErrorsDetectorListener (let's call it that) that collects info and matches it against a list of known 'situations'.

A feature like this could really help save a lot of headaches to many people.


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.