logo       


Middlegen 2.1 and an int and java.lang.Integer interface incompatibility: msg#00007

Subject: Middlegen 2.1 and an int and java.lang.Integer interface incompatibility
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


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe