Hello!
I have just recently started to develop EJBeans and have this (very common)
problem: I want to generate a new index. Having read several posts on the
subject, I feel I don' t really understand how it can be that tricky.
Wouldn't the easiest solution be to make a select max(key) statement and
then add 1 to get your new key?
Unfortunately the JBoss docs say nothing about how to generate this kind of
query using a finder. It says a finder method must be named FindBy... and
return either a bean or a collection of beans. What I want is a finder
method named findMaxKey (for example) returning an integer (using the select
max(key) from table). Is this possible and how would I write it?
Please advice!
Regards,
Pelle Poluha
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user