|
David Blevins wrote: I have called it TablePK Its actrually a wrapper, right now it only contains a Integer This is the code. package gcc.lpd; import java.io.Serializable; public class TablasPK implements Serializable { public TablasPK() { } public TablasPK(int pk){ this.PKTabla = pk; } public String toString(){ return Integer.toString(this.PKTabla); } public int hashCode(){ return String.valueOf(PKTabla).hashCode(); } public boolean equals(Object o){ if (o instanceof TablasPK) { TablasPK otherKey = (TablasPK)o; return (PKTabla == otherKey.PKTabla); } else return false; } /** @link dependency */ /*# TablasBean lnktablasBean; */ public int PKTabla; } What data type is your primary key in the database? -David------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ http://OpenEJB.sf.net OpenEJB-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openejb-user |
smime.p7s
Description: S/MIME Cryptographic Signature
