wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Adding columns dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Adding columns dynamically" Watch "Adding columns dynamically" New topic
Author

Adding columns dynamically

sriram sankar
Ranch Hand

Joined: Feb 26, 2008
Posts: 43
If an application has

First Name
Last Name
Country

And in future if someone wants to have zip code. I think use hibernate alter table functionality to add columns will be efficient way of doing it.

Does anyone managed these kinds of functionality in your products without an ORM solution?


SCJP 1.5 , SCBCD 5.0, SCEA 5.0
sriram sankar
Ranch Hand

Joined: Feb 26, 2008
Posts: 43
I mean hibernate or any ORM solution...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

sriram sankar wrote:Does anyone managed these kinds of functionality in your products without an ORM solution?

The alternative is to run the SQL to add the column yourself.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: Adding columns dynamically
 
Similar Threads
Key comparison
Power
Update Pattern??
keep rows and columns freezing
sorting functionality in jsp