Posts Tagged ‘ Database

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

ADD_MONTH vs add(Calendar.MONTH)

The FSF Trophy

I found it very interesting that these two methods are not working same :(

SELECT add_months(TO_DATE(’28-FEB-2007′), 1) FROM dual = 31-MAR-2007

while

java.util.Calendar c=..//28-FEB-2007
c.add(Calendar.MONTH,1); // gives 28-MAR-2007

which one is true ?
for the situation I am dealing java calculation is correct !

java vs Oracle and again winner is java !!!!

working in a datamine

Miner in a mine of the

Image via Wikipedia

For the last few weeks I am working as a data miner :(
This is a really hard work to do. In fact for me it is even harder.

java developer != DBA

Think of a domain that you know totally nothing since it is a new job and a new domain to me. Read more

moved to postgres

PostgreSQL

Image via Wikipedia

I change my development database to postgres SQL for a several reasons :

  • I’am bored to mysql :)
  • mysql do not give me entreprise database trust: looks so simple even too simple to offer to my customers. it suites for less complicated fast application.
  • Last but most important reason it its Licensing !!!

Since I am very new to postgres I am playing with it. looking for new features and trying to solve compatibility problems :(

One good referance for people like me :

Converting mysql to Pstgresql

PS:
since I am using hibernate and so on no development required for this migration…

Reblog this post [with Zemanta]