-
1. Re: import.sql and hsqldb
stu2 Apr 29, 2007 2:16 AM (in response to suryad)It's a hibernate thing, not seam-related. Check out http://www.hibernate.org/381.html
-
2. Re: import.sql and hsqldb
matt.drees Apr 29, 2007 2:19 AM (in response to suryad)It's part of hibernate.
http://www.google.com/search?hl=en&q=import.sql+hibernate&btnG=Google+Search -
3. Re: import.sql and hsqldb
suryad Apr 29, 2007 3:29 AM (in response to suryad)Thanks very much for explaining that to me. It makes sense now. I am still new to the whole Seam stack including Hibernate and EJB3 and JSF so I am learning while I go through the tutorials.
I got another question. If one were to not want to use HSQLDB and wanted to use MySQL what would be the configuration xml files that one would have to change to make that happen? I realize of course the driver will change, the dialect for Hibernate will change as well.
I see in the booking example there is an xml file called persistence.xml. In there there is a line:<jta-data-source>java:/bookingDatasource</jta-data-source>
It seems to me that line needs to be changed but where is that datasource being loaded up from in the first place? -
4. Re: import.sql and hsqldb
suryad Apr 29, 2007 3:31 AM (in response to suryad)Wait I think I found it. There is a file called booking-ds.xml where it contains the database information etc. So scratch my previous post.