I tested it out using primitive attributes for the primary keys but I
ran into another build problem during the build process for EJBs.

So, I'm returning back to getting the int and java.lang.Integer
incompatibilities issues.  let me know if you can help me
troubleshoot.
-Terry

compile-ejb:
    [javac] Compiling 234 source files to C:\Documents and
Settings\Yeod\Desktop\download\middlegen-2.1\samples\build\classes
    [javac] C:\Documents and
Settings\Yeod\Desktop\download\middlegen-2.1\samples\build\gen-src\airline\ejb\Cpg132AlbumBean.java:480:
incompatible types
    [javac] found   : <nulltype>
    [javac] required: int
    [javac]       return null;
    [javac]              ^



On Wed, 6 Oct 2004 11:23:21 -0400, Terry W <[EMAIL PROTECTED]> wrote:
> I found the drop down with the primitive values for cmp2.0
> persistence.  I will test it out now.
> -Terry
> 
> 
> 
> 
> On Wed, 6 Oct 2004 10:56:50 -0400, Terry W <[EMAIL PROTECTED]> wrote:
> > I will look into that.  I see when I run ant with the gui [build]
> > button and a cmp2.0 frame below, the tables above with a gui select
> > drop down below, will choose only java wrapper classes for fields in
> > the database.  I don't see any java primitives options in any of the
> > options in the drop down.  I will keep trying.
> >
> > btw, the airline.ear builds no problem.
> >
> > I believe it is in the Struts build process that my type casting
> > problem exists.
> >
> > it appears to be in the ..findByVisibility methods, and the TranslatorUtil class
> > -Terry
> >
> >
> >
> > On Tue, 5 Oct 2004 22:42:38 -0400 (EDT), Ben Litchfield <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Have you changed the datatype in the gui?  You can set either int or
> > > java.lang.Integer.
> > >
> > > Ben
> > >
> > >
> > >
> > >
> > > On Tue, 5 Oct 2004, Terry W wrote:
> > >
> > > > Hi, I'm new to Middlegen and I'm real excited to use it.
> > > >
> > > > I am taking an existing MySQL 4.0 database from an opensource project,
> > > > Coppermine, and I am running Middlegen against it to see how to use
> > > > Middlegen.
> > > >
> > > > I am having a problem where an interface expects a wrapper class but
> > > > it is receiving a primitive variable.
> > > >
> > > > I've seen messages posted about modifying the Sql2Java.java class and
> > > > messages about foreign keys of one class are accidentally named the
> > > > same as a key in another class of a different type, or there abouts.
> > > >
> > > > I really haven't seen a definitive answer to this question other than
> > > > modifying the Sql2Java.java class or modifying a velocity template
> > > > file.  By the way, which I don't see where in Middlegen 2.1 where I
> > > > would modify the primitive to wrapper classes in the velocity files.
> > > >
> > > > If there are some other early adopter of Middlegen 2.1 who have also
> > > > seen the same problem please let me know what the workaround was.
> > > >
> > > > -Terry
> > > >
> > > > .
> > > > </snip>
> > > > .
> > > > .
> > > > webdoclet:
> > > > [webdoclet] Generating web.xml.
> > > >
> > > > compile-adapter:
> > > >     [javac] Compiling 17 source files to
> > > > /home/terry/middlegen-2.1/samples/build/classes
> > > >     [javac] 
> > > > /home/terry/middlegen-2.1/samples/build/gen-src/airline/adapter/StrutsCpg131AlbumDelegate.java:108:
> > > > findByVisibility(int) in airline.interfaces.Cpg131AlbumFacade cannot
> > > > be applied to (java.lang.Integer)
> > > >     [javac]
> > > > retVals.addAll(airline.interfaces.Cpg131AlbumFacadeUtil.getHome().create().findByVisibility(cpg131AlbumForm.getVisibility()));
> > > >     [javac]
> > > > .
> > > > .
> > > > </snip>
> > > > .
> > > >     [javac] 
> > > > /home/terry/middlegen-2.1/samples/build/gen-src/airline/adapter/TranslatorUtil.java:453:
> > > > setParent(java.lang.Integer) in airline.web.struts.Cpg131CategoryForm
> > > > cannot be applied to (int)
> > > >     [javac]
> > > > cpg131CategoryForm.setParent(cpg131CategoryPersistence.getParent());
> > > >     [javac]
> > > > .
> > > > .
> > > > </snip>
> > > > .
> > > >     [javac] 100 errors
> > > >
> > > > BUILD FAILED
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > > > Use IT products in your business? Tell us what you think of them. Give us
> > > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > > > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > > > _______________________________________________
> > > > middlegen-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/middlegen-user
> > > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > > Use IT products in your business? Tell us what you think of them. Give us
> > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > > _______________________________________________
> > > middlegen-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/middlegen-user
> > >
> >
>


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to