<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I tried hard to get the DB working, but I failed :-/<br>
I am positively convinced that the faces scaffold is well prepared
to handle primitive types, only long seems to be unhandled.<br>
<br>
If I could get the generated code I would try to fix any problem,
but my attempts at reverse engineering failed :-(<br>
<br>
Thomas<br>
<br>
<br>
Am 20.03.2012 20:19, schrieb Lincoln Baxter, III:
<blockquote
cite="mid:CAEp_U4HR2hiOXeHP2BNQbXFTGqt+wbJMp7svrx8r_hTtPvWYSw@mail.gmail.com"
type="cite">Hmm, ok.<br>
<br>
I tried to get to the root cause of this issue, but since I am not
familiar with Metawidget, I hit a road block around line 265 of
FacesScaffold.java ( JavaClass viewBean =
JavaParser.parse(JavaClass.class,
this.backingBeanTemplate.render(context)); ) The template simply
takes Metawidget's contents and inserts it, I'm not sure how to
continue.<br>
<br>
Thomas or Richard, any chance you could take a look at this
project (the result of running the new scaffold on a reverse
engineered database.) and see what we can do to resolve this
compliation issue?<br>
<br>
It's specifically caused because the generated entities are using
primitive types (short, long) instead of object types for their ID
fields, so I guess we need to support both.<br>
<br>
Thoughts? How easy is this to fix?<br>
<br>
~Lincoln<br>
<br>
<div class="gmail_quote">On Tue, Mar 20, 2012 at 2:49 PM, Koen
Aers <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:koen.aers@gmail.com">koen.aers@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">In
attachment the project that was generated from the sakila
database (<a moz-do-not-send="true"
href="https://github.com/maxandersen/sakila-h2"
target="_blank">https://github.com/maxandersen/sakila-h2</a>)
using the hibernate tools plugin and scaffolding. It contains
a number of problems related to primitive types and their
object counterparts.<br>
<br>
<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/forge-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Lincoln Baxter, III<br>
<a moz-do-not-send="true" href="http://ocpsoft.org"
target="_blank">http://ocpsoft.org</a><br>
"Simpler is better."<br>
</blockquote>
<br>
</body>
</html>