Well, I've found two problems while trying to regenerate my classes 
using ORMapMaker...

First off, in the generated classes you get code like this:

public String toString()
              {
              String result;
              try
                      {
                      result = getId().toString();
...


there is no getId() method in Record. :-)
This can be fixed either by adding one, or by changed the generated 
code to just get id().

In addition, and slightly more alarming:

public void replaceReferencesWith(Banner replacement, Transaction 
taxn) throws TownException
              {
              {
              Visited r;
              for(Iterator e = visited().iterator(); e.hasNext(); )
                      {
                      r = (Visited)e.next();
                      r.copyOriginalToAttic(user.id(), taxn);
                      r.setBanner(replacement);
                      r.setModifiedbyuser(user);
                      r.save(taxn);
                      }
              }
              }

what is user.id()?
I don't use town user tables, since I don't need them, thus there is 
no reference to user in any of my classes.
This is something I don't feel comfortable fixing by myself, since I 
don't understand much about what this code does.

I use the following options when I generate:

-schema=dbname.schema -outputdir=dbname/db -package=dbname.db -ormap 
-beanmethods -recordclass=mycustomclass


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to