This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 30356
    
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding columns dynamically