Hi

Sounds as if there went something terribly wrong with your generation.  Have you
checked NewGenerateMapBuilderTask.txt for usage specifications.

I suspect you only copied the ant description without setting the variables to
appropriate values.  From the txt file:

<quote>
To let the generated MapBuilder files extend a superclass
specify the "extend" property.  If you leave this property
blank the generated classes will import the MapBuilder
interface and provide the required implementations. If
you do specify an "extend" class you should provide
implementations of the MapBuilder methods in your
superclass.  You will also need to add the following
member variable to the superclass:
protected DatabaseMap dbMap = null;
</quote>

If you've done all this and you still have problems, please let me know for that
will mean there is a bug somewhere in the code that needs fixing.

I'll also send a correct class to you by private e-mail so that you can at least
have a working example.  This is one of the classes I use in my own projects and
it is in it's original unmodified generated state :-)

~ Leon

----- Original Message -----
From: Diethelm Guallar, Gonzalo <[EMAIL PROTECTED]>
To: 'Turbine' <[EMAIL PROTECTED]>
Sent: Friday, August 04, 2000 11:53 PM
Subject: RE: MapBuilders


> > >   AuthorMapBuilder.java:15: no interface expected here
> > >   public class AuthorMapBuilder extends MapBuilder
> >
> > This should definitely be:
> >
> > public class AuthorMapBuilder implements MapBuilder
>
> Are you sure about this? If I do that, I get the following
> error messages:
>
> public class AuthorMapBuilder implements MapBuilder
>        ^
> AuthorMapBuilder.java:51: cannot resolve symbol
> symbol  : variable dbMap
> location: class com.sonda.bancos.om.library.map.AuthorMapBuilder
>         dbMap = DBBroker.getInstance().getDatabaseMap(DBBroker.DEFAULT);
>         ^
> AuthorMapBuilder.java:52: cannot resolve symbol
> symbol  : variable dbMap
> location: class com.sonda.bancos.om.library.map.AuthorMapBuilder
>         dbMap.addTable(getTable());
>         ^
> AuthorMapBuilder.java:53: cannot resolve symbol
> symbol  : variable dbMap
> location: class com.sonda.bancos.om.library.map.AuthorMapBuilder
>         TableMap tMap = dbMap.getTable(getTable());
>                         ^
> 4 errors
>
>
>
> Basically, the dbMap symbol is not defined anywhere. That's
> why I tried extending TurbineMapBuilder instead of
> implementing MapBuilder (and that's why I had to change
> dbMap in TurbineMapBuilder from private to protected).
> Maybe I should add a dbMap to my own MapBuilder classes?
>
>
> Now, my REAL problem is: my code just doesn't work (when
> extending TurbineMapBuilder, that is)... I added the
> following lines to one of my screens:
>
>         Criteria crit = new Criteria();
>         crit.add(BookPeer.id, 0, " > ");
>         Vector books = BookPeer.doSelect(crit);
>
> but the minute I try to add the BookPeer.id to the criteria,
> the whole thing hangs. I have a Log() on entering and exiting
> this screen, and I see TWO logs for entering and NONE for
> exiting... The browser screen just remains blank, and the little
> world stops rotating, indicating that the server answered the
> browser.
>
> Any suggestions?
>
> > By the way - I should probably have
> > mentioned this earlier - you can check out
> > NewGenerateMapBuilderTask.txt in the
> > docs directory.  This was the doc for the utility that gave
> > birth *OMGenerator.
> > It's a bit outdated but a lot of stuff is still valid.  I
> > need to redo the whole
> > thing soon....
>
> I would REALLY appreciate some hand holding here...
> Thanks,
>
> > ~ Leon
>
>
> --
> Gonzalo A. Diethelm
> [EMAIL PROTECTED]
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to