Hi All,
I m working working on a big shipping line ERP...i have come accress the OR mapping tool like hibernate and all...but since i start working with toplink i start liking it very much...but from last few days i got stuck in the implementation of generic dao using toplink...here's the problem....
i got arrayindexoutofbounds exception when i use following vesseldao:-
@Entity
@Table(name = "VESSEL", schema = "GLOBE_TEMP", uniqueConstraints = {})
public class Vessel implements java.io.Serializable {
// Fields
private Long vesselId;
private VesselSaType vesselSaType;
private Set<VesselComm> vesselComms = new HashSet<VesselComm>(0);
private Set<VesselHdr> vesselHdrs = new HashSet<VesselHdr>(0);
private Set<VesselImage> vesselImages = new HashSet<VesselImage>(0);
private Set<VesselFlagLocation> vesselFlagLocations = new HashSet<VesselFlagLocation>(
0);
private Set<VesselCrane> vesselCranes = new HashSet<VesselCrane>(0);
private Set<VesselContract> vesselContracts = new HashSet<VesselContract>(0);
.........
but when i use the following it works fine:-
@Entity
@Table(name = "VESSEL_HDR", schema = "GLOBE_TEMP", uniqueConstraints = {
@UniqueConstraint(columnNames = { "VESSEL_CODE" }),
@UniqueConstraint(columnNames = { "VESSEL_IMO_NO" }) })
public class VesselHdr implements java.io.Serializable {
// Fields
private Long vesselHdrId;
private Vessel vessel;
private String vesselCode;
private String vesselName;
private String typeOfVessel;
private String vesselImage;
private String financialCode;
private Long vesselImoNo;
.....
anyones help will be highly appriceated...
here's what i pass in <Vessel, Long>....in DAO
[Message sent by forum member 'sarveshsharmas' (sarveshsharmas)]
http://forums.java.net/jive/thread.jspa?messageID=222197