Hello;

Let us take the following code example:

Code:
	@Column(name = "SERVICE_TYPES")
	public String getServiceTypes() {
		return serviceTypes;
	}

	public void setServiceTypes(String serviceTypes) {
		this.serviceTypes = serviceTypes;
	}
I need to know if setServiceTypes is related to database or not?
And regarding to getServiceTypes, it is fetching the data from the database and from column SERVICE_TYPES, but what if there were too many records in this table, so this will be used to fetch the value from the SERVICE_TYPES column for one record only? That means, I have first to fetch the record of the table and then I can use getServiceTypes method?

And regarding to save and commit, let us take the following example:

Code:
        session.saveOrUpdate(customer);
        HibernateUtil.commitTransaction();
This will be for one customer record? (As the customer is configured a class and annotated by @Entity and @Table and it implements Serializable).

Regards
Bilal