Previous Topic: Positioned UpdatesNext Topic: Sample Programs


HibernateDialect

Hibernate is an open-source software product available from Red Hat that provides an Object-Relational Mapping (ORM) and persistence solution for Java developers. With Hibernate, developers are able to work with data as Java objects rather than as the rows and columns of a relational database. Developers generally do not have to code JDBC calls or SQL statements and do not have to be concerned with the syntax and behavior of a particular DBMS. A special Java class known as a dialect, unique to a particular DBMS, specifies the data types, functions and features supported by the DBMS.

CA IDMS Server provides a dialect, IDMSDialect.class, which is included in the idmsjdbc.jar file. To use it, add the jar file to the classpath definition and set the following properties in the hibernate.cfg.xml file:

Hibernate Property

Setting for IDMS Dialect

dialect

com.ca.idms.hibernate.IDMSDialect

connection.driver_class

ca.idms.jdbc.IdmsJdbcDriver