Discussion:
[Middlegen-user] Changes to Entity template don't work with JBoss
M.-Leander Reimer
2003-01-21 11:00:03 UTC
Permalink
Yep, it's me again!

Updated to latest CVS head today, and used it to generate and build the code
for our project. Compilation and deployment work OK. But when I try to
access an entity with a relation to another entity the app crashes with

java.sql.SQLException: Column not found: Unknown column 'group' in 'field
list'

when the container loads the 'user' entity.

I had a look at the latest entity-cmp-20.vm and compared it to the version
from a few days ago. There are differences in lines 304,305 and 311,312. The
lines 311,312 are responsible for the foreign key mapping for JBoss. After I
changed the lines back to

#set( $thisSideJbossTag = "jboss.target-relation" ) <-- instead of
"jboss.relation"
#set( $otherSideJbossTag = "jboss.relation" ) <-- instead if
"jboss.target-relation"

everything works again. I don't know if lines 304,305 are correct the way
they are at the moment, since I am not using relation tables.

Leander



---------
M.-Leander Reimer
MSc Computer Science
Dipl.-Inf. (FH)

Techdivision
Kunstmühlstr. 17
83022 Rosenheim

Fon: +49 (0)8031 356 38 32
Fax: +49 (0)8031 356 38 48
Email: ***@techdivision.com
Internet: www.techdivision.com
a***@netcom.no
2003-01-21 12:19:01 UTC
Permalink
So obviously this bug report (which I fixed yesterday) was wrong:
http://tinyurl.com/4p7w

I'll have a look.

Aslak

----- Original Message -----
From: "M.-Leander Reimer" <***@techdivision.com>
Date: Tuesday, January 21, 2003 12:59 pm
Subject: [Middlegen-user] Changes to Entity template don't work with
JBoss
Post by M.-Leander Reimer
Yep, it's me again!
Updated to latest CVS head today, and used it to generate and
build the code
for our project. Compilation and deployment work OK. But when I
try to
access an entity with a relation to another entity the app crashes
with
java.sql.SQLException: Column not found: Unknown column 'group' in
'fieldlist'
when the container loads the 'user' entity.
I had a look at the latest entity-cmp-20.vm and compared it to the
versionfrom a few days ago. There are differences in lines 304,305
and 311,312. The
lines 311,312 are responsible for the foreign key mapping for
JBoss. After I
changed the lines back to
#set( $thisSideJbossTag = "jboss.target-relation" ) <-- instead of
"jboss.relation"
#set( $otherSideJbossTag = "jboss.relation" ) <--
instead if
"jboss.target-relation"
everything works again. I don't know if lines 304,305 are correct
the way
they are at the moment, since I am not using relation tables.
Leander
---------
M.-Leander Reimer
MSc Computer Science
Dipl.-Inf. (FH)
Techdivision
Kunstm�hlstr. 17
83022 Rosenheim
Fon: +49 (0)8031 356 38 32
Fax: +49 (0)8031 356 38 48
Internet: www.techdivision.com
-------------------------------------------------------
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Russell Black
2003-01-22 00:06:07 UTC
Permalink
----- Original Message -----
From: <***@netcom.no>


So obviously this bug report (which I fixed yesterday) was wrong:
http://tinyurl.com/4p7w

I wouldn't be to hasty to change it back, Aslak. I'm pretty sure the bug is
(was) a valid one. The only way I've been able to get things working with
JBoss was to switch them.

----- Original Message -----
From: "M.-Leander Reimer" <***@techdivision.com>
Date: Tuesday, January 21, 2003 12:59 pm
Subject: [Middlegen-user] Changes to Entity template don't work with
JBoss
Post by M.-Leander Reimer
Yep, it's me again!
Updated to latest CVS head today, and used it to generate and
build the code
for our project. Compilation and deployment work OK. But when I
try to
access an entity with a relation to another entity the app crashes
with
java.sql.SQLException: Column not found: Unknown column 'group' in
'fieldlist'
when the container loads the 'user' entity.
I had a look at the latest entity-cmp-20.vm and compared it to the
versionfrom a few days ago. There are differences in lines 304,305
and 311,312. The
lines 311,312 are responsible for the foreign key mapping for
JBoss. After I
changed the lines back to
#set( $thisSideJbossTag = "jboss.target-relation" ) <-- instead of
"jboss.relation"
#set( $otherSideJbossTag = "jboss.relation" ) <--
instead if
"jboss.target-relation"
everything works again. I don't know if lines 304,305 are correct
the way
they are at the moment, since I am not using relation tables.
Leander
---------
M.-Leander Reimer
MSc Computer Science
Dipl.-Inf. (FH)
Techdivision
Kunstmühlstr. 17
83022 Rosenheim
Fon: +49 (0)8031 356 38 32
Fax: +49 (0)8031 356 38 48
Internet: www.techdivision.com
-------------------------------------------------------
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
M.-Leander Reimer
2003-01-21 12:30:02 UTC
Permalink
Hi,

I only have a 1..n relation between the tables user and group, where user
has the FK. I am not using m..n relations with JBoss, but the changes in
lines 304,305 might be correct then.

Leander


-----Ursprungliche Nachricht-----
Von: ***@netcom.no [mailto:***@netcom.no]
Gesendet: Dienstag, 21. Januar 2003 15:10
An: M.-Leander Reimer
Cc: middlegen-***@lists.sourceforge.net
Betreff: Re: [Middlegen-user] Changes to Entity template don't work with
JBoss


So obviously this bug report (which I fixed yesterday) was wrong:
http://tinyurl.com/4p7w

I'll have a look.

Aslak

----- Original Message -----
From: "M.-Leander Reimer" <***@techdivision.com>
Date: Tuesday, January 21, 2003 12:59 pm
Subject: [Middlegen-user] Changes to Entity template don't work with
JBoss
Post by M.-Leander Reimer
Yep, it's me again!
Updated to latest CVS head today, and used it to generate and
build the code
for our project. Compilation and deployment work OK. But when I
try to
access an entity with a relation to another entity the app crashes
with
java.sql.SQLException: Column not found: Unknown column 'group' in
'fieldlist'
when the container loads the 'user' entity.
I had a look at the latest entity-cmp-20.vm and compared it to the
versionfrom a few days ago. There are differences in lines 304,305
and 311,312. The
lines 311,312 are responsible for the foreign key mapping for
JBoss. After I
changed the lines back to
#set( $thisSideJbossTag = "jboss.target-relation" ) <-- instead of
"jboss.relation"
#set( $otherSideJbossTag = "jboss.relation" ) <--
instead if
"jboss.target-relation"
everything works again. I don't know if lines 304,305 are correct
the way
they are at the moment, since I am not using relation tables.
Leander
---------
M.-Leander Reimer
MSc Computer Science
Dipl.-Inf. (FH)
Techdivision
Kunstm|hlstr. 17
83022 Rosenheim
Fon: +49 (0)8031 356 38 32
Fax: +49 (0)8031 356 38 48
Internet: www.techdivision.com
-------------------------------------------------------
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Aslak Hellesøy
2003-01-22 00:14:01 UTC
Permalink
I'd be happy if both of you could provide with me with a test case to
provoke a failure.

Russel for the old (and current) code.
Leander for the code of yesterday.

Then we'll sort it out.

Cheers,
Aslak
-----Original Message-----
Sent: 22. januar 2003 03:06
Subject: Re: [Middlegen-user] Changes to Entity template don't work with
JBoss
----- Original Message -----
http://tinyurl.com/4p7w
I wouldn't be to hasty to change it back, Aslak. I'm pretty sure
the bug is
(was) a valid one. The only way I've been able to get things working with
JBoss was to switch them.
----- Original Message -----
Date: Tuesday, January 21, 2003 12:59 pm
Subject: [Middlegen-user] Changes to Entity template don't work with
JBoss
Post by M.-Leander Reimer
Yep, it's me again!
Updated to latest CVS head today, and used it to generate and
build the code
for our project. Compilation and deployment work OK. But when I
try to
access an entity with a relation to another entity the app crashes
with
java.sql.SQLException: Column not found: Unknown column 'group' in
'fieldlist'
when the container loads the 'user' entity.
I had a look at the latest entity-cmp-20.vm and compared it to the
versionfrom a few days ago. There are differences in lines 304,305
and 311,312. The
lines 311,312 are responsible for the foreign key mapping for
JBoss. After I
changed the lines back to
#set( $thisSideJbossTag = "jboss.target-relation" ) <-- instead of
"jboss.relation"
#set( $otherSideJbossTag = "jboss.relation" ) <--
instead if
"jboss.target-relation"
everything works again. I don't know if lines 304,305 are correct
the way
they are at the moment, since I am not using relation tables.
Leander
---------
M.-Leander Reimer
MSc Computer Science
Dipl.-Inf. (FH)
Techdivision
Kunstmühlstr. 17
83022 Rosenheim
Fon: +49 (0)8031 356 38 32
Fax: +49 (0)8031 356 38 48
Internet: www.techdivision.com
-------------------------------------------------------
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...