Taras Danylak wrote:

This is my first request for adding a feature, so please forgive me if i don't follow the code/feature submission rules.

You should use JIRA for feature requests.

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.

Thank you very much :-)

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);
}

Hum, I guess, but it is quite easy to write this yourself ... ?

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.

Yeah, all hibernate exceptions are now runtime exceptions in Hibernate3. This was a mistake.



-- Gavin King +61 41 053 4454 +1 404 822 8349 callto://gavinking

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com



-------------------------------------------------------
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

Reply via email to