January 23, 2007

You are currently browsing the daily archive for January 23, 2007.

As JPA is providing the interface to connect your Java application to the database, it is supposed to be just an interface doing so. In the other words, you have freedom in managing your database, by changing the DB-specific parameters and tuning the database.

In MySQL, as most people should know, there provides a choice of storage engine on each table. By using JPA, you can let the persistence provider to generate the table for you. It is easy and let the persistence provider determine the suitable configuration for you, both on table and on each field.

The default storage engine for table is InnoDB, as it supports transaction, row-locking and foreign keys where are needed by JPA. However, if you have a table that needs performance rather than data accuracy, you can manually change the storage engine to MyISAM before or after the persistence provider’s decision.

You can stop the persistence provider from generating the table, which you build your own table first, and just simply mapped all the things to the Entity.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • Technorati
  • YahooMyWeb

« Older entries

 

January 2007
S M T W T F S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories