Hi, everyone,
This is my first request for adding a feature, so please forgive me if i don't follow the code/feature submission rules.
I've started using hibernate a 7 hours ago, yeah, bought the Hibernate in action, and got down to it. Gotta give some praise to the authors, what a great book, one of the best computer books, I would say. Anyway, I got my first "hello world" working without a hitch.
Working with a Configuration class, I realized that it would be nice if it had a method that set the properties from a file.
something like this
public Configuration setProperties(File propertiesFile) { Properties props = new Properties(); props.load(new FileInputStream(propertiesFile)); return this.setProperties(props); }
Also, in my opinion MappingException class should extend RuntimeException instead of Exception, which would allow for less clutter in the code, because if there is a problem with the mapping what is the point of moving on to load the app. Of course, if the developer needs to move on, he/she can still use a try/catch to catch the exception and handle it in an appropriate way.
For now I think this is it, that's all I have found, But I think some other exception used by Hibernate ought to be changed to Runtime, to allow for less clutter and faster code. And the change from Exception to RuntimeException would not impact current Hibernate code in any way.
Let me know what you think.
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel