RE: [JBoss-user] a to cmp

2003-10-29 Thread Eric J Kaplan
Title: Message









Thanks Rod.  This will help tremendously.  I will let you all know how it turns
out.

 

-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rod Macpherson
Sent: Wednesday, October 29, 2003
4:24 PM
To:
[EMAIL PROTECTED]
Subject: RE: [JBoss-user] a to cmp

 



I second the middlegen
motion. Generates the Bean classes with XDoclet tags and XDoclet does the rest:
homes, remotes, descriptors. The sample is rather involved so here are the
basic components for your own ant script: a classpath, a Middlegen task and an
XDoclet task. I think this will save you some time in creating your own stipped
down ANT script for midlegen. 





 





1. Reference the database
config and table list for later inclusion:





 












     ]>





 





 





2. Have a classpath
similar to the the following, also include the database config:





 





  
  
  
  
  
  





 

  
  
  
  
  
 

  
  





 





    &database





 





3. Have a Middlegen
target as follows, key is to point to your own entity-cmp-20.vm velocity script
and you can start with a copy from the middlegen source. 





 





  





   






   






 
username="${database.userid}" 
password="${database.password}" 
schema="${database.schema}" 
initialContextFactory="nop"  providerURL="nop" 
>





 

  &tables;





  






   
mergeDir="./velocity"  readonly="false" 
fkcmp="false"   guid="false">





 





   






 





 
    





 






  





 





4. Have an XDoclet target
as follows:





 





  














         





   

    





   






   






   













 





 





 





-Original Message-
From: Eric J Kaplan
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 29, 2003
6:06 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] a to cmp

All

 

Anyone know of a good product (or
eclipse plugin) that I can point at my database and have it generate cmp entity
beans (files with xdoclet tags would be ok).  Yes, I realize I’ll have to tweak
the files afterward, but there’s a lot of this that can be automated.

 

Regards

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960

 










RE: [JBoss-user] a to cmp

2003-10-29 Thread Rod Macpherson
Title: Message



I 
second the middlegen motion. Generates the Bean classes with XDoclet tags and 
XDoclet does the rest: homes, remotes, descriptors. The sample is rather 
involved so here are the basic components for your own ant script: a classpath, 
a Middlegen task and an XDoclet task. I think this will save you some time in 
creating your own stipped down ANT script for midlegen. 
 
1. 
Reference the database config and table list for later 
inclusion:
 

     
]>
 
 
2. 
Have a classpath similar to the the following, also include the database 
config:
 
  
    
  
  
  

    
  
  
  
    
  
  
 
    &database
 
3. 
Have a Middlegen target as follows, key is to point to your own entity-cmp-20.vm 
velocity script and you can start with a copy from the middlegen source. 

 
  
    
    
  
username="${database.userid}"  password="${database.password}"  
schema="${database.schema}"  initialContextFactory="nop"  
providerURL="nop"  >
  
  
&tables;
   

    mergeDir="./velocity"  
readonly="false"  fkcmp="false"   guid="false">
 
    

 
 

  

  

 
4. 
Have an XDoclet target as follows:
 
  

 
          
        

    
    
    
 
 
 
 

  
  -Original Message-From: Eric J Kaplan 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 
  6:06 AMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] a to cmp
  
  All
   
  Anyone know of a good product (or eclipse plugin) that I can point at my database and have it 
  generate cmp entity beans (files with xdoclet tags would be ok).  Yes, I realize I’ll have to tweak the 
  files afterward, but there’s a lot of this that can be 
  automated.
   
  Regards
   
  Eric J. 
  Kaplan
  Armanta, 
  Inc.
  350 Mt. Kemble 
  Ave.
  Morristown, 
  NJ 
  07960
   


RE: [JBoss-user] a to cmp

2003-10-29 Thread Eric J Kaplan
Absolutely Edgar.  I want to thank everyone for their suggestions, I'll
check them all out.  This is invaluable to someone who'd rather spend
their time painting the mona lisa than painting by numbers. :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edgar Silva
Sent: Wednesday, October 29, 2003 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] a to cmp

Hi Eric ...

I have been using a Eclipse Plug-in called *Lomboz 
<http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=38>*, it's 
free and can be a great choice to you.
Nevertheless, there is another plug in called *MyEclipse Enterprise 
Workbench 
<http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=317>* , 
which is comercial but is super unexpensive licence , when you have 
other comercial IDE's in evaluation.

Another way can be you use the Middlegen, which is a free tool based 
also in XDoclet . It can create based in your relational schema your CMP

Entity Beans and your Struts Client as well.

Some problems that I have found in Lomboz is the generation os some 
files not necessary in the process, like: WebLogic files, and other 
related files to others application servers, however you can delete some

files , and to produce all your enviroment with simple builds using ANT.

The great place to looking for this "toys" is:

*http://eclipse-plugins.2y.net/eclipse/index.jsp

I hope this help you

Edgar Silva - Brazil
*
Eric J Kaplan wrote:

> All
>
> Anyone know of a good product (or eclipse plugin) that I can point at 
> my database and have it generate cmp entity beans (files with xdoclet 
> tags would be ok). Yes, I realize I'll have to tweak the files 
> afterward, but there's a lot of this that can be automated.
>
> Regards
>
> Eric J. Kaplan
>
> Armanta, Inc.
>
> 350 Mt. Kemble Ave.
>
> Morristown, NJ 07960
>





---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] a to cmp

2003-10-29 Thread Edgar Silva
Hi Eric ...

I have been using a Eclipse Plug-in called *Lomboz 
*, it's 
free and can be a great choice to you.
Nevertheless, there is another plug in called *MyEclipse Enterprise 
Workbench 
* , 
which is comercial but is super unexpensive licence , when you have 
other comercial IDE's in evaluation.

Another way can be you use the Middlegen, which is a free tool based 
also in XDoclet . It can create based in your relational schema your CMP 
Entity Beans and your Struts Client as well.

Some problems that I have found in Lomboz is the generation os some 
files not necessary in the process, like: WebLogic files, and other 
related files to others application servers, however you can delete some 
files , and to produce all your enviroment with simple builds using ANT.

The great place to looking for this "toys" is:

*http://eclipse-plugins.2y.net/eclipse/index.jsp

I hope this help you

Edgar Silva - Brazil
*
Eric J Kaplan wrote:
All

Anyone know of a good product (or eclipse plugin) that I can point at 
my database and have it generate cmp entity beans (files with xdoclet 
tags would be ok). Yes, I realize I’ll have to tweak the files 
afterward, but there’s a lot of this that can be automated.

Regards

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960





---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] a to cmp

2003-10-29 Thread Stephane Nicoll



middlegen.
 
Regards,
 
Stephane

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Eric J 
  KaplanSent: Wednesday, October 29, 2003 3:06 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] a to 
  cmp
  
  All
   
  Anyone know of a good product (or eclipse plugin) that I can point at my database and have it 
  generate cmp entity beans (files with xdoclet tags would be ok).  Yes, I realize I’ll have to tweak the 
  files afterward, but there’s a lot of this that can be 
  automated.
   
  Regards
   
  Eric J. 
  Kaplan
  Armanta, 
  Inc.
  350 Mt. Kemble 
  Ave.
  Morristown, 
  NJ 
  07960
   


Re: [JBoss-user] a to cmp

2003-10-29 Thread Marek Lange
Eric J Kaplan wrote:

Anyone know of a good product (or eclipse plugin) that I can point at my 
database and have it generate cmp entity beans (files with xdoclet tags 
would be ok).  Yes, I realize I’ll have to tweak the files afterward, 
but there’s a lot of this that can be automated.
Middlegen is ok but you have to adapt configuration and templates to 
make it work for you. The last release of the project was more than a 
year ago but you can give it a try. All the XDoclet tags seem to be working.

-marek



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] a to cmp

2003-10-29 Thread Dave Smith
I have a perl script that converts an external database schema 
definition to a CMP  bean.


On Wed, 2003-10-29 at 09:15, Neal Sanche wrote:
> On October 29, 2003 09:06 am, Eric J Kaplan wrote:
> > Anyone know of a good product (or eclipse plugin) that I can point
> > at my database and have it generate cmp entity beans (files with
> > xdoclet tags would be ok).  Yes, I realize I'll have to tweak the
> > files afterward, but there's a lot of this that can be automated.
> 
> 
> There's a Sourceforge project called Middlegen that does some of what 
> you're asking. It's somewhat tricky to get running, and I found that 
> I had to make extensive modifications to their templates (what else 
> is new?) but I was able to get it running quite well. Hope it helps 
> you.
> 
> -Neal
> 
> 
> 
> ---
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Dave Smith
CANdata Systems Ltd
416-493-9020



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] a to cmp

2003-10-29 Thread Comtois, Pierre
Title: Message



I 
started using Lomboz ... http://www.objectlearn.com/index.html 
not sure if it can create cmps from DB but it seems to be a good tool to 
investigate.
 
 
 
Pierre 
Comtois Business Acceleration Services, 
Solutions Consulting 45 O'Connor Street, Suite 500    ·    
Ottawa, Ontario K1P 1A4 Ph: 613-787-4649  ·  FAX: 613-567-6053  ·  
E-Mail:  [EMAIL PROTECTED] 

  
  -Original Message-From: Eric J Kaplan 
  [mailto:[EMAIL PROTECTED] Sent: October 29, 2003 9:06 
  AMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] a to cmp
  
  All
   
  Anyone know of a good product (or eclipse plugin) that I can point at my database and have it 
  generate cmp entity beans (files with xdoclet tags would be ok).  Yes, I realize I'll have to tweak the 
  files afterward, but there's a lot of this that can be 
  automated.
   
  Regards
   
  Eric J. 
  Kaplan
  Armanta, 
  Inc.
  350 Mt. Kemble 
  Ave.
  Morristown, 
  NJ 
  07960
   


RE: [JBoss-user] a to cmp

2003-10-29 Thread Eric J Kaplan
Thanks Neal, will try.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neal Sanche
Sent: Wednesday, October 29, 2003 9:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] a to cmp

On October 29, 2003 09:06 am, Eric J Kaplan wrote:
> Anyone know of a good product (or eclipse plugin) that I can point
> at my database and have it generate cmp entity beans (files with
> xdoclet tags would be ok).  Yes, I realize I'll have to tweak the
> files afterward, but there's a lot of this that can be automated.


There's a Sourceforge project called Middlegen that does some of what 
you're asking. It's somewhat tricky to get running, and I found that 
I had to make extensive modifications to their templates (what else 
is new?) but I was able to get it running quite well. Hope it helps 
you.

-Neal



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] a to cmp

2003-10-29 Thread Konstadinis Euaggelos



There is a tool for it, middlegen, which need some 
configuration it's ant based project
which takes as an input a database and gives 
as output entities-beans, primarykeygenerator, jsp etc.. 
 
I think it's what do you need. 
 
http://boss.bekk.no/boss/middlegen/
 
 
Vangos... 
 

  - Original Message - 
  From: 
  Eric J 
  Kaplan 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, October 29, 2003 4:06 
  PM
  Subject: [JBoss-user] a to cmp
  
  
  All
   
  Anyone know of a good product (or eclipse plugin) that I can point at my database and have it 
  generate cmp entity beans (files with xdoclet tags would be ok).  Yes, I realize I’ll have to tweak the 
  files afterward, but there’s a lot of this that can be 
  automated.
   
  Regards
   
  Eric J. 
  Kaplan
  Armanta, 
  Inc.
  350 Mt. Kemble 
  Ave.
  Morristown, 
  NJ 
  07960
   


Re: [JBoss-user] a to cmp

2003-10-29 Thread Neal Sanche
On October 29, 2003 09:06 am, Eric J Kaplan wrote:
> Anyone know of a good product (or eclipse plugin) that I can point
> at my database and have it generate cmp entity beans (files with
> xdoclet tags would be ok).  Yes, I realize I'll have to tweak the
> files afterward, but there's a lot of this that can be automated.


There's a Sourceforge project called Middlegen that does some of what 
you're asking. It's somewhat tricky to get running, and I found that 
I had to make extensive modifications to their templates (what else 
is new?) but I was able to get it running quite well. Hope it helps 
you.

-Neal



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user