Tag Archives: hibernate

Personalize Database Connection Settings to Aid in Team Development

Different environments have their own database settings

When a development team is developing a system that requires accessing a database, it is a common practice to setup local databases on each of the development environment and populate them with all the required schema of the system so that developers can develop and test the function they implement with test data in their own database, rather than working with actual data with production database.

Read more »

Solving SQL Server Connection Problem

Upon database modeling with the Object Relational Mapping (ORM) feature, you always need to connect to the server. However, you may encounter problem in connecting to the SQL server, which is a great obstruction to your modeling. In this article, we will provide ways to help you to check whether your configurations for connecting to SQL Server are correct. Read more »

How to use customized type in Object Relational Mapping

When defining class model for your persistent layer, a class is defined as part of the static data model instead of controller or user interface items. And the class is directly mapped to table(s) in your database. As the class is mapped to tables, its attributes is also mapped to columns in table. In order to make the mapping work, you have to model attributes with primitive types like integer, boolean, String, etc. You cannot model the attribute as any other types which are not compatible with database.

To overcome this, you can make use of ORM User Type to define customized datatype for attributes, and persistent its value into database. This article will teach you how to use ORM User Type. Read more »