Posts Tagged ‘ orm

hibernate tip: smart id generator

A small tip to generate more meaningful Id. Instead of 32 for OrderID use O000000032.

Use smart and meaningful ids

Use smart and meaningful ids

Simple implementations:

  • SmartIdTableGenerator
  • SmartIdSequenceGenerator

Read more

Clean database schema with inheritance

ORM Diagram

It is very common way of usage that  when ever you need some new attribute for your model objects/table you add a new column to the related database table.  After several requirements you will notice: Read more

Grails Days 1: GORM-CRUD

A basic calculator
Image via Wikipedia

It has been more than a week since I downloaded Grails, Although my first Grails impressions are not so well, I am playing with Grails with lots of curiosity and joy, Read more

No Implementation DAO Layer Project: Polyforms

if you are interested in my previous article “who need implemenation” ,there is a similiar project have already launched: Polyforms

Infoq article

project wiki

it uses JPA and some annotation (very different from mines) to not implementing DAO layer.

hopefully I ‘ll make my first open source implemention next month :) wait for me :)

have fun :)

Why ORM? ’cause:

Hi again, a few hours ago I have read a question about ORM mapping for java . He wonders why  and when this technology is chosen.

Disclaimer: I am omitting the case, when your database is just a storage for a CRUD apps. I am talking about complex applications, when stored procedures are used very extensively, like Oracle’s PL/SQL.

Read more