I have the following situation;

An entitybean has a compound primary key. The primary key consists of a unique 
number and a foreign key.
I have already found out that I should use some kind of a wrapper class for the 
compound primary key.
The wrapper class is finished and has 2 public fields with exactly the same 
names as declared in the entitybean.

Now I am trying to create the findByPrimaryKey(MyBeanPK pk) method in XDoclet.
How do I make the comparison??  All I found in documentation was finding a 
primary key on just 1 simple argument eg. a String.
I believe in my situation I cant use a query like;
query = "Select Object(R) from MyBean R where R.attribute=?1"

Can anyone help me out getting my findByPrimaryKey fixed for a compound primary 
key in a wrapper class?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855226#3855226

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855226


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to