chungonn Posted November 23, 2006 Share Posted November 23, 2006 Hi, I have just started to use iReport with Hibernate and I think it is a great tool. I felt the constraint to use "hibernate.cfg.xml" to connect Hibernate is too restrictive hence I added a new TextField to the Hibernate Connection Dialog. In this way, i can choose to use any name other than the default "hibernate.cfg.xml". There is only one weakness, the new hibernate config name is not made persistent and one must re-establish the connection each time iReport launches. Below, I have attached the files i have modifed. [file name=iReport_change.gz size=24551]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/iReport_change.gz[/file] Link to comment Share on other sites More sharing options...
chungonn Posted November 24, 2006 Author Share Posted November 24, 2006 Hi all, I have now managed to make the settings for hibernate.cfg.xml persistent. Please find the attached source code [file name=iReport_change-6645af61f5ad9e806b08f90ec03f9ca1.gz size=24753]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/iReport_change-6645af61f5ad9e806b08f90ec03f9ca1.gz[/file] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now