I can confirm - this is a bug in M4. I'd appreciate a bug report... Also I am surprised that we overlooked it. I have a bunch of int's in my mappings. Wonder if there is a difference in behavior between Ant and Modeler generation.

Andrus

On Aug 19, 2008, at 5:39 PM, John Armstrong wrote:

Type is int

Modeler gives no warnings at all.

I can send a screen cast or any other config info you might need?

John-

On Mon, Aug 18, 2008 at 10:47 PM, Andrus Adamchik
<[EMAIL PROTECTED]> wrote:
Are there Modeler warnings saying the type not being set? What is the Java
type of the id attribute?

Andrus



On Aug 18, 2008, at 7:20 PM, John Armstrong wrote:

3.0M4 on MacOS X (using the native tool).

J

On Mon, Aug 18, 2008 at 9:19 AM, Andrus Adamchik <[EMAIL PROTECTED] >
wrote:

Which version of Cayenne is this? I vaguely recall a bug that we fixed
already...

Andrus


On Aug 18, 2008, at 7:16 PM, John Armstrong wrote:

Hi Ari,
I am only using the model tool as specified in the wiki
(http://cwiki.apache.org/CAY/mapping-primary-keys.html), no custom
templates or anything 'advanced'. Should I file a ticket for tracking
or is this user error on my side?

John-

On Sun, Aug 17, 2008 at 7:23 AM, Aristedes Maniatis <[EMAIL PROTECTED] >
wrote:

On 17/08/2008, at 7:38 PM, John Armstrong wrote:

public $classGen.formatJavaType(${attr.Type}) getId() {
 Object value = readProperty("id");
 return (value != null) ? (Integer) value : 0;
}

The getId() doesn't compile as it looks like something is not
interpolating cleanly during class generation?

It looks like the templates are not being properly processed. I can't
image
why, but are you using cgen as described here:
http://cayenne.apache.org/doc/cgen.html to create these files? If you
have
customised your templates could you try with the default ones.

Ari Maniatis



-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A











Reply via email to