Code example for SessionFactory

Methods: getCurrentSession

0
	 * get current Hibernate session 
	 *  
	 * @return current Hibernate session 
	 */ 
	private Session session() {
		return sessionFactory.getCurrentSession();
	} 
	 
	/** 
	 * @see org.openmrs.api.db.DatatypeDAO#getClobDatatypeStorage(java.lang.Integer) 
	 */ 
	@Override 
	public ClobDatatypeStorage getClobDatatypeStorage(Integer id) {
		return (ClobDatatypeStorage) session().get(ClobDatatypeStorage.class, id);
	} 
	 
	/** 
	 * @see org.openmrs.api.db.DatatypeDAO#getClobDatatypeStorageByUuid(java.lang.String) 
	 */ 
	@Override 
Experience pair programming with AI  Get Codota for Java