Please enter multiple issues if you have multiple things fixed. Otherwise, problems and solutions will get lost in my inbox. ;-)

On Nov 17, 2008, at 9:20 AM, mwaynewalter <[EMAIL PROTECTED]> wrote:


Matt,

Should I only enter a JIRA for this one discreet change? I ask because I
also fixed a number of things related to generating code for multiple
objects that reference each another.  I could give you a patch, etc.

One problem with that which I don't know how to fix is that the random
generated test data fails foreign key constraints. I just replaced it with a
sample of data from a production data base by doing a dbunit export.

Wayne


mraible wrote:

On Thu, Nov 6, 2008 at 7:28 AM, mwaynewalter
<[EMAIL PROTECTED]> wrote:

Matt,

Thanks but I found a fix.  FYI, the error below says this is the
offending
line.

${pojo.generateJoinColumnsAnnotation(property)} [on line 11, column 15 in

If works beautifully if you add a parameter to that method so it looks
like
this in appfuse/model/Ejb3PropertyGetAnnotation.ftl:

${pojo.generateJoinColumnsAnnotation(property,cfg)}

In the newer version of hibernate tools, that method needs the
configuration
as the second argument.

If you simply put ",cfg" there, it will fix it.

Wow. It took me about 4 hours to figure this out.

Thanks for taking the time to figure out a solution. Can you please
enter an issue in JIRA s

Please any advice? Do people really use this gen-model tool heavily? I
see
a number of "to do" comments in the code. Is there a more powerful,
better
recommended reverse engineering tool for JPA/ hibernate?

The gen-model plugin re-uses a lot of what the Hibernate3 Maven Plugin
does, but adds some AppFuse-specific tweaks.

Matt



--
View this message in context: 
http://www.nabble.com/appfuse-2.0.2-gen-model-and-join-columns--tp20349030s2369p20542613.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to