Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-14 Thread Aleksei Valikov

Hi.


Its great that these tools exist -- obviously I had no idea. ;-)


Yeah, we're programmers not promoters...


I'm going to have to take a look at both of them and perhaps integrate
one of them into our build process...


Let me know if you experience any problems with Hyperjaxb2. There's a 
[EMAIL PROTECTED] m,ailing list, if anything.



Any others worth looking at, while we're on the topic??


There are tools like Castor and XMLBeans, but I'm not sure if there's Maven 
support for these libs. Hyperjaxb2 delivers Maven support out of the box.


Bye.
/lexi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Aleksei Valikov
Hi.

 Forgive me if this is a naive question but I've search the web and 
 haven't found an obvious answer.
 
 I'd like to find a tool that generates Java source files, SQL schema 
 files, and O/R mapping files from the same XSD file.  The input XSD file 
 (over which I have no control) defines the format of XML messages.  I 
 know that JAXB, XMLbeans, etc. can create the Java source files from 
 this type of XSD file.  However, I haven't been able to identify a tools 
 that creates the SQL schema and O/R mapping files from the same type of 
 XSD file.  The closest tool I've found is Hydrate that will generate all 
 three types of output files but it does this from a Hydrate model XSD 
 file, not from the type of XSD file that JAXB or XMLbeans would take as 
 input.
 
 Of course, it would be perfect if this tool could be integrated into a 
 Maven 2 build process.

This is exactly what Hyperjaxb2 does. Take a look at:

https://hyperjaxb2.dev.java.net/

Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and configuration 
for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml.

Hyperjaxb2 includes a Maven2 plugin.

You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
map everything for you. And of course you can customize the generated mappings.

Here's a sample application:

https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip

Bye.
/lexi
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Wilfred Springer
Modello is similar, to some extent... Apart from the fact that it
doesn't support JAXB, Hibernate and XML Schema. ;-) Instead you would
use Modello's own schema language, their own data binding tools and JPOX
for persistency.

http://mojo.codehaus.org/



On Fri, 2006-10-13 at 11:29 +0200, Aleksei Valikov wrote:

 Hi.
 
  Forgive me if this is a naive question but I've search the web and 
  haven't found an obvious answer.
  
  I'd like to find a tool that generates Java source files, SQL schema 
  files, and O/R mapping files from the same XSD file.  The input XSD file 
  (over which I have no control) defines the format of XML messages.  I 
  know that JAXB, XMLbeans, etc. can create the Java source files from 
  this type of XSD file.  However, I haven't been able to identify a tools 
  that creates the SQL schema and O/R mapping files from the same type of 
  XSD file.  The closest tool I've found is Hydrate that will generate all 
  three types of output files but it does this from a Hydrate model XSD 
  file, not from the type of XSD file that JAXB or XMLbeans would take as 
  input.
  
  Of course, it would be perfect if this tool could be integrated into a 
  Maven 2 build process.
 
 This is exactly what Hyperjaxb2 does. Take a look at:
 
 https://hyperjaxb2.dev.java.net/
 
 Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and 
 configuration for JAXB classes. That is, you get *.hbm.xml and 
 hibernate.cfg.xml.
 
 Hyperjaxb2 includes a Maven2 plugin.
 
 You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
 map everything for you. And of course you can customize the generated 
 mappings.
 
 Here's a sample application:
 
 https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip
 
 Bye.
 /lexi


Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Wayne Fay

Its great that these tools exist -- obviously I had no idea. ;-)

I'm going to have to take a look at both of them and perhaps integrate
one of them into our build process...

Any others worth looking at, while we're on the topic??

Wayne

On 10/13/06, Wilfred Springer [EMAIL PROTECTED] wrote:

Modello is similar, to some extent... Apart from the fact that it
doesn't support JAXB, Hibernate and XML Schema. ;-) Instead you would
use Modello's own schema language, their own data binding tools and JPOX
for persistency.

http://mojo.codehaus.org/



On Fri, 2006-10-13 at 11:29 +0200, Aleksei Valikov wrote:

 Hi.

  Forgive me if this is a naive question but I've search the web and
  haven't found an obvious answer.
 
  I'd like to find a tool that generates Java source files, SQL schema
  files, and O/R mapping files from the same XSD file.  The input XSD file
  (over which I have no control) defines the format of XML messages.  I
  know that JAXB, XMLbeans, etc. can create the Java source files from
  this type of XSD file.  However, I haven't been able to identify a tools
  that creates the SQL schema and O/R mapping files from the same type of
  XSD file.  The closest tool I've found is Hydrate that will generate all
  three types of output files but it does this from a Hydrate model XSD
  file, not from the type of XSD file that JAXB or XMLbeans would take as
  input.
 
  Of course, it would be perfect if this tool could be integrated into a
  Maven 2 build process.

 This is exactly what Hyperjaxb2 does. Take a look at:

 https://hyperjaxb2.dev.java.net/

 Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and 
configuration for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml.

 Hyperjaxb2 includes a Maven2 plugin.

 You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
map everything for you. And of course you can customize the generated mappings.

 Here's a sample application:

 
https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip

 Bye.
 /lexi




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Tim Moloney

Thank you for all of the suggestions.  :)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-12 Thread Tim Moloney
Forgive me if this is a naive question but I've search the web and 
haven't found an obvious answer.


I'd like to find a tool that generates Java source files, SQL schema 
files, and O/R mapping files from the same XSD file.  The input XSD file 
(over which I have no control) defines the format of XML messages.  I 
know that JAXB, XMLbeans, etc. can create the Java source files from 
this type of XSD file.  However, I haven't been able to identify a tools 
that creates the SQL schema and O/R mapping files from the same type of 
XSD file.  The closest tool I've found is Hydrate that will generate all 
three types of output files but it does this from a Hydrate model XSD 
file, not from the type of XSD file that JAXB or XMLbeans would take as 
input.


Of course, it would be perfect if this tool could be integrated into a 
Maven 2 build process.


Thanks.

Tim Moloney


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-12 Thread Wayne Fay

I'm not aware of such a tool; perhaps take a look at XDoclet or
Hibernate, they have a variety of tools available in this domain,
maybe you'll find something that will work...

Also, you might be able to use some XSLT to convert your input XSD
into a Hydrate model XSD and then use the Hydrate solution you
suggested.

Wayne

On 10/12/06, Tim Moloney [EMAIL PROTECTED] wrote:

Forgive me if this is a naive question but I've search the web and
haven't found an obvious answer.

I'd like to find a tool that generates Java source files, SQL schema
files, and O/R mapping files from the same XSD file.  The input XSD file
(over which I have no control) defines the format of XML messages.  I
know that JAXB, XMLbeans, etc. can create the Java source files from
this type of XSD file.  However, I haven't been able to identify a tools
that creates the SQL schema and O/R mapping files from the same type of
XSD file.  The closest tool I've found is Hydrate that will generate all
three types of output files but it does this from a Hydrate model XSD
file, not from the type of XSD file that JAXB or XMLbeans would take as
input.

Of course, it would be perfect if this tool could be integrated into a
Maven 2 build process.

Thanks.

Tim Moloney


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]