Re: Reserved field-names in middlegen ?

Ludovic Claude <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Kinshuk wrote:

> Hi,
>  
> I am new to Middlegen but so far this looks too good to be true !
>  
> Small issue - i failed to post this as a bug.
>  
> I found that if any table has a field named 'SHORT' then there is a 
> problem getting the jars to compile. I often use SHORT as a field-name 
> instead of SHORTNAME.
>  
> I had a table called NEWS. Things did not go too well here either.
>  
> I think 'short', 'new' are being used in the code in some way as to 
> cause Java compilation problems.
>  
> Other than that, no issues so far. I am using SQL Server 2000, ms-sql 
> driver.
>  
> BTW, the docs say that the Struts plugin wont work well if we dont use 
> the 'airline' application. But it does !
>  
> Thanks
>  
> Kinshuk
>  
>  

Kinshuk,

If you launch middlegen with the gui, you can change the names of the 
java fields and java classes. So you can rename your field to 
'shortName', or rename the table 'News'

Ludovic




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.