RE: newbie getting 404's, 740's and 256's

"Ray Tayek" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <00f801c41060$293c9ec0$b4d501cc@STINGRAY>

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Eivind Waaler
> Sent: Monday, March 22, 2004 12:25 AM
> To: [email protected]
> Subject: Re: [Middlegen-user] newbie getting 404's, 740's and 256's
> 
> ... You get the first because of tables with no primary key.

Yes, it's a legacy database.

> This is a problem, as a cmp must have one..

Not sure what cmp means (component or container managed persistence).

> If you use the latest cvs version you can specify a primary key with the 
> "pkcolumnsoverride" attribute on the <table> elements: <table 
> name="foo" pkcolumnsoverride="aa,bb"/>

ok, will do if needed.
 
> The second is because you don't have relationships in your 
> db.

Right. We will have to add these by hand.

> You can still generate the code, but everything will be 
> standalone classes without relationships.

Yes, but having the code and .hbm.xml to start with for free is still
wonderful.

> I'd recommend upgrading your db to one that has foreign keys, 
> that's when you really see the beauty of Middlegen :-)

it's all legacy for now, but that will be something to look forward to.
 
> To turn on logging, just make sure log4j.properties is in 
> your classpath when you run Middlegen.

got the logging working!

thanks for your assistance.

> On Fri, 19 Mar 2004, Ray Tayek wrote:
> 
> > Hi, newbie to db's, naict, getting a bunch of 404's ... 
> > is this ok? Are the 740's and 256's just the sort of normal stuff..
> > ... does not support foreighn keys).
> > eclipse (eclispse must be turning on some loging somehow, 
> > does anyone know how to turn this on when ant is run from the command
line?).
> >
> > middlegen:
> > [middlegen] (middlegen.MiddlegenPopulator        740 ) 
> WARNING: The JDBC
> > driver didn't report any primary key columns in po_item_shipped
> > [middlegen] (middlegen.MiddlegenPopulator        256 ) 
> WARNING: Middlegen
> > couldn't find any relations between any tables. ...



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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.