This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 53213 - <multilple> relationship for 1:1
Summary: <multilple> relationship for 1:1
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 10:49 UTC by Petr Blaha
Modified: 2005-07-21 09:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (84.64 KB, image/png)
2005-01-11 10:50 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-01-11 10:49:38 UTC
[Build 20050111]
Let's have this database structure:
CREATE TABLE TAB1
(KEY1 INTEGER  NOT NULL,
PRIMARY KEY (KEY1)
);
CREATE TABLE TAB2
(KEY1 INTEGER  NOT NULL,
 VALUE2 CHARACTER (10),
PRIMARY KEY (KEY1),
FOREIGN KEY (KEY1)  REFERENCES TAB1(KEY1)
);
This is simple 1:1 relationship. I generated CMP
beans, the correct elements in DD was generated:

<ejb-relationship-role>      
<ejb-relationship-role-name>Key1</ejb-relationship-role-name>
        <multiplicity>One</multiplicity>
        <relationship-role-source>
          <ejb-name>Tab1</ejb-name>
......
Then I go to the visual sun-ejb-jar.xml DD and
open Cmp Mapping tab, there is <multilple> type
for this relationship.
I guess, that type isn't multiple, there should be
type like Single or .....
See. attached screenshot
Comment 1 Petr Blaha 2005-01-11 10:50:18 UTC
Created attachment 19597 [details]
snapshot
Comment 2 Rochelle Raccah 2005-01-11 23:20:10 UTC
The TYPE column is for jdbc type of database columns involved.  Since
all relationships involve at least a pair of columns in their key,
this JTable column shows multiple for all relationships regardless of
cardinality.  This is according to the ui spec.
Comment 3 Vince Kraemer 2005-07-21 00:01:47 UTC
new / invalid ???