Hi,

I'm trying to make a unidirectional 0-1 relation but something is wrong. The error 
tells me that a generated finder 'findByUsr' on Inode has returned more than one value 
when expecting only one.
I have only defined an ejb.relation on the Inode bean. Should I also define the 
realtion on the Usr bean?

---------     -------
|       | 0-1 |     |
| Inode |-----| Usr |
|       |     |     |
---------     -------

InodeBean:
-----------

/**
* @return owner - this Inodes owner
*
* @ejb.relation
*  name="inode-usr"
*  role-name="inode-references-usr"
*  target-ejb="Usr"
*
* @ejb.interface-method
*  view-type="local"
*
* @weblogic.column-map
*  foreign-key-column="OWNERIDFK"
*  key-column="ID"
*/
public abstract UsrLocal getOwner();

/**
* @param owner - this Inodes owner
*
* @ejb.interface-method view-type="local"
*/
public abstract void setOwner(UsrLocal owner);


Yours, Thomas





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to