Cleber Miranda Barboza wrote:

Hello,

I'm using a database that has a compose primary key. The problem is
that the Xdoclet genarates a findByPrimaryKey method with a primary key unique automatically.
I don't want it !


Supose my compose primary key is codeProduct+codEmploy. So insted of
have findByPrimaryKey(codeProduct), I'd like have only
findByCodeEmploy(codProduct,codEmploy) to find a entity.


What I have to do for don't geranate the findByPrimaryKey method.



[]'s



--
Cleber Miranda Barboza.
I'm a Computer Science student at University of S�o Paulo (USP). email: [EMAIL PROTECTED]
home page: http://www.linux.ime.usp.br/~cleberc




-------------------------------------------------------
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
.



findByPk is necessary to entity beans you, and the way xdoclet generates it is the only one.
You will have both query version (I can't understand what's the noise with having two queries instead of 1)


cheers,
kiuma




------------------------------------------------------- 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