Ok I fixed it, check out the latest code.
I tested it for the following cases:
/**
* @orion:persistence persistence-name="balance" sql-type="NUMBER"
*/
public abstract float getBalance();
/**
* @orion:persistence persistence-name="id" sql-type="NUMBER"
*/
public abstract Integer getId();
Also for ejb ref case:
/**
* @orion:persistence persistence-name="owner"
ejb-class-name="test.ejb.CustomerBean"
*/
public abstract Customer getOwner();
Note that I changed home parameter to ejb-class-name for some technical
reasons. Docs not updated yet. Anyway it'll go after CustomerBean and
put it's pk field in cmp-mapping.
Collections are not tested but I guess it should *hopefully* work! For
your case where the type in the collection is an ejbean I think it
should work because it tries to traverse from interface name to ejbean
and do the rest from the remote ejbean.
Let me know if it works!
PS: I put recursive merge because cmp-mapping elements are recursive.
Note that it first does a pushClass so it operates in another class,
element type of a collection type for example.
Ara.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-devel-
> [EMAIL PROTECTED]] On Behalf Of Christoph Sturm
> Sent: Tuesday, October 09, 2001 1:24 PM
> To: Jan Heise
> Cc: [EMAIL PROTECTED]
> Subject: Re: AW: [Xdoclet-devel] orion support
>
>
> > hello chris,
>
> > the orion stuff works for me (used it last week). perhaps you
> > post an example bean where the problem occurs and i'm gonna
> > have a look at it.
> here's my code snippet:
>
>
> /**
> *
> * @ejb:persistent-field
> * @ejb:interface-method
> * @orion:persistence table-name="MatchArticleCategory"
> type="redact.ejb.interfaces.Category" immutable="true"
> */
> public abstract java.util.Collection getCategories();
>
> but xdoclet doesnt generate anything for this (it should generate
> a collection mapping)
>
> If you could paste a working collection mapping it would be great :)
>
> regards
> chris
>
>
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel