For type safety I am using a custom primary key class. I've got the XML that I
expect but there are a few issues I'd like to iron out:
1) What does my finder method look like now? The CMP field that I used to have
("ID") has been replaced by the unknown primary key: it specifies a field name
= "ID" and a column name = C_ID". What does my "findByID()" finder look like
now? The same?
ex. (old) -- Select OBJECT(x) FROM tComponent AS x WHERE x.ID = ?1
Should I use x.C_ID instead?
2) Do I still need a getPrimaryKey() method? If so, how do I build the primary
key class instance in the method without the old cmp field to refer to?
old code:
public Object getPrimaryKey() {
ComponentPK key = new ComponentIntegerPK();
key.ID = getID();
return key;
}
There is no longer a getID() method because the CMP field "ID" no longer
exists. What do I use for a value to assign to "key.ID"?
By the way, is there anything else I've missed.
I appreciate any input very much.
Environment:
Windows XP Professional
JBoss 4.0.2
Hypersonic DB
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895034#3895034
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895034
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user