Discussion:
[Middlegen-user] Hibernate plugin
Colin Chalmers
2003-06-27 12:45:02 UTC
Permalink
Hi all,

I just downloaded Middlegen (and Hibernate) to see what I could do. I specifially want to use
Middlegen with Hibernate to migrate from torque to Hibernate. I understood from the docs (on the
Hibernate site) that I could use the Hibernate plugin (in Middlegen) to read from a database and
generate the Hibernate classes. Unfortunately when I try to run middlegen with the following
settings

<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
</hibernate>

I get an error saying that nothing is known about this plugin :-(

I'm using middlegen 2.0-b1

Any pointers? Should I be including a plugin jar somewhere?

Colin
Kevin Brown
2003-06-27 13:09:14 UTC
Permalink
Colin,

I haven't gotten it working yet (newbie), but there is an hibernate plug-in
distributed with the latest 2.x version in CVS. I did not see the plugin in
the version you are using.

- Kevin

P.S.
Now if you know what jars I need to include in the class path to avoid this
error, please let me know:

ejbdoclet Make sure the jar file containing the ejbdoclet class is on the
classpath specified in the <taskdef> that defined {2}. These classes are
needed in order to generate correct output.





-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net]On Behalf Of Colin
Chalmers
Sent: Sunday, July 27, 2003 10:40 AM
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] Hibernate plugin


Hi all,

I just downloaded Middlegen (and Hibernate) to see what I could do. I
specifially want to use
Middlegen with Hibernate to migrate from torque to Hibernate. I understood
from the docs (on the
Hibernate site) that I could use the Hibernate plugin (in Middlegen) to read
from a database and
generate the Hibernate classes. Unfortunately when I try to run middlegen
with the following
settings

<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
</hibernate>

I get an error saying that nothing is known about this plugin :-(

I'm using middlegen 2.0-b1

Any pointers? Should I be including a plugin jar somewhere?

Colin



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Aslak Hellesøy
2003-06-27 13:21:05 UTC
Permalink
Post by Colin Chalmers
Hi all,
I just downloaded Middlegen (and Hibernate) to see what I could do. I specifially want to use
Middlegen with Hibernate to migrate from torque to Hibernate. I understood from the docs (on the
Hibernate site) that I could use the Hibernate plugin (in Middlegen) to read from a database and
generate the Hibernate classes. Unfortunately when I try to run middlegen with the following
settings
<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
</hibernate>
I get an error saying that nothing is known about this plugin :-(
I'm using middlegen 2.0-b1
The Middlegen plugin is not in 2.0-b1 (the last release). There is some
stuff in CVS. And some in the new bugtracker at codehaus:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MIDDLEGEN-2

So you have to check out from CVS, apply the patch and rebuild.

Aslak
Post by Colin Chalmers
Any pointers? Should I be including a plugin jar somewhere?
Colin
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...