hbm2seam assume to much about collection names and "directionality"

Description

hbm2seam (in particular editorbean.ftl) assumes that all associations are bidirectional and that all collections is shortName + "s" ...that is not the case

Environment

None

Activity

Show:

Max Rydahl Andersen October 28, 2007 at 9:59 AM

outofdate

Max Rydahl Andersen February 27, 2006 at 5:25 PM

create table ISSUE ( ID int not null, DATETIME timestamp, TEXT varchar(200), USER varchar(30), primary key (ID) );
CREATE TABLE comments ( id int not null, issue_id int not null, datetime timestamp, text varchar(200), user varchar(30), primary key (id), constraint issue_comments foreign key (issue_id) references ISSUE );

above will fail on the "s" thing. The code should instead check if there actually is a "opposite" side.

Rejected

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Max Rydahl Andersen

Components

Affects versions

Priority

Created February 27, 2006 at 5:24 PM
Updated October 28, 2007 at 9:59 AM
Resolved October 28, 2007 at 9:59 AM