Emerging Technology
Fall Semester, 2004 Hibernate & Glorp Install |
||
---|---|---|
© 2004, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 16-Nov-04 |
CS 683 Emerging Technologies Fall Semester, 2004 Doc 28 Hibernate & Glorp Install
Copyright ©, All rights reserved. 2004 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA. OpenContent ( http://www.opencontent.org/opl.shtml) license defines the copyright on this document
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 2 |
Download Page: http://www.hibernate.org/6.html
Click on the Download from SourceForge link on that page
Download hibernate-2.1.6 and hibernate-extensions-2.1.2
Uncompress the files, no compilation is needed
To run Hibernate you need a
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 3 |
You can use any database you wish
Free databases:
MySQL http://dev.mysql.com/downloads/connector/j/3.0.html
MySQL Connector/J
PostgreSQL http://jdbc.postgresql.org/
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 4 |
The following jar files need to be in your classpath
Optional jar files
The following files need to be edited and placed in a directory that is in your classpath
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 5 |
It is a bit difficult to run Hibernate by hand due to the jar files
For those that know Ant for an example see
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 6 |
No plugins are needed to run Hibernate programs
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 7 |
On my machine not being loaded
public class Main { public static void main(String[] args) throws Exception { loadProperties(); etc. } public static void loadProperties() throws IOException { Properties all = new Properties(System.getProperties()); all.load(propertyStream("hibernate.properties")); all.load(propertyStream("log4j.properties")); System.setProperties(all); }
CS 683 Fall 04 | Doc 28, Hibernate & Glorp Install Slide # 8 |
Go to the CINCOM public repository, load in this order:
The VisualWorks installation contains a earlier version
Load in the following order:
PostgreSQL connection is already in VW image
MySQL connection is available from CINCOM store, but not highly reliable
Copyright ©, All rights reserved.
2004 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA.
OpenContent license defines the copyright on this document.