This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes create tables from xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "create tables from xsd" Watch "create tables from xsd" New topic
Author

create tables from xsd

Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
HI all,

i have an xsd schema, I was able to create pojos from the given xsd schema, since the xsd was quite big, there are quite a few pojos involved, now my next step is to create a database to store these pojos. I would like to know is there a way by which tables in mysql could be created based on the pojos or xsd schema ?

If yes could you please let me know how ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9913
    
158

Anil Karamchandan wrote: now my next step is to create a database to store these pojos. I would like to know is there a way by which tables in mysql could be created based on the pojos or xsd schema ?



I'm not sure why exactly you are doing that? Why do you want to store those Java classes into database? Or are you trying to map the Java classes as database entities (like ORM)? A bit more details on what you are trying to achieve will help understand the question better.


[My Blog] [JavaRanch Journal]
Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
yes, I am trying to map the pojos to the database entities, like ORM, do we have any app that does that .?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12757
    
    5
This is not really an XML question - you should continue in the Object-relational mapping forum.

Bill
 
Consider Paul's rocket mass heater.
 
subject: create tables from xsd
 
Similar Threads
Castor or XStream???
MSSQL Stored Procedures to Java objects
Calling Java Code from C#
CSV to XML conversion
in-memory xml database