Guys,
I need to set the Database fields in my local scheme through hibernate session, by using java.
Here is the code, I am using to setup the field called carId
public void setCarId(Car theCar){
createDBSession();
Transaction tx1 = carSession.beginTransaction();
CarDetails carDetails=new CarDetails();
CarPrice carPrice = null;
try{
carPrice=carDetails.getCar(theCar.getCarNameCode(), null);
long carId=carPrice.getCarId();
theCar.setCarId(carId);
}
catch (CarException ce) {
log.debug(ce);
}
}
carSession.saveOrUpdate(theCar);
tx1.commit();
closeDBSession();
}
But, the field(carId) in my database is not displaying its value (whose original value is present in OracleDB), the value of the carId field is coming from OracleDB, which i replicated in my SybaseDb
Thks
|