Hi, i have ceated one entity bean for which i am using my own primary key , details are here under:
Entity Bean ejbCreate method::::::::::: public PriceListScheduleLinkPK ejbCreate(PriceListScheduleLink thePriceListScheduleLink) throws CreateException{ setPricelistHeaderId(thePriceListScheduleLink.getPricelistHeaderId()); setPublisherScheduleId(thePriceListScheduleLink.getPublisherScheduleId()); return null; } primary key class:::::::::: public class PriceListScheduleLinkPK implements java.io.Serializable { public int priceListHeaderId; public int publisherScheduleId; // Default Constructor public PriceListScheduleLinkPK(){} public int getPriceListHeaderId() { return priceListHeaderId; } public int getPublisherScheduleId() { return publisherScheduleId; } // provide implementation for hascode and equals public int hashCode() { return (priceListHeaderId+ "price:publisher"+publisherScheduleId).hashCode(); } public boolean equals(Object other) { if (other instanceof PriceListScheduleLinkPK) { return (priceListHeaderId ==((PriceListScheduleLinkPK)other).priceListHeaderId && publisherScheduleId==((PriceListScheduleLinkPK)other).publisherScheduleId); } return false; } extarct of ejb-jar.xml ::::::::::: <ejb-name>PriceList_Schedule_Link</ejb-name> <local-home>com.gist.usapl.product.PriceListScheduleLinkEntityHome</local-ho me> <local>com.gist.usapl.product.PriceListScheduleLinkEntityObject</local> <ejb-class>com.gist.usapl.product.PriceListScheduleLinkEntityBean</ejb-class > <persistence-type>Container</persistence-type> <prim-key-class>com.gist.usapl.product.PriceListScheduleLinkPK</prim-key-cla ss> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>PriceListScheduleLink</abstract-schema-name> now the problem is :::::::::: during deployment in JBoss the query generated by server( for findByPrimaryKey method) shows query as: select publisher_schedule_id from PriceList_Schedule_Link where publisher_schedule_id=? where as i believe it should show for both the fields. also, after calling other finder method ie findByPriceListHeader( priceListHeaderId) , it returns collection quicky but when i am using priceListScheduleLinkEntityObject.remove and priceListScheduleLinkEntityHome.create(..) it is throwing transaction-time-out exception for no of records as low as 700-800. ( actualy does remove and create for 4-5 beans only and then this exception comes) Looking forward for some response. thanx in advance, Regards, Sanjeev } ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user