doubt in CMR and CMP

China
March 29, 2007 11:33pm CST
Hi all! I have a fundamental doubt in ejb.. I have a parent table and a child table..The chile table has a foreign key which references PK of parent table..Imade this foreign key field a CRM..Everything is fine till here.. Now,I made the same foreign key field a CMP as well(gave different names to setter-getter methods)and it still works! I can access the same field using CMR and CMP.Is this good pratice? Do people follow this? (Because I cant use CMR in finder methods but CMP can be used in finder methods, so its really convenient for me to have both CMR,CMP for same column) I use JBoss4.0.4GA,EJB2.0 Thanks in advance!
No responses