Code example for Session

Methods: containsrefresh

0
		return load(ContentPage.class, id);
	} 
 
	public void refreshIfDetached() { 
		Session session = getSession();
		if (!session.contains(this)) {
			session.refresh(this);
		} 
	} 
	 
	public static ContentPage loadBySiteAndPath(Site site, String path) {
		return query(ContentPage.class,  
				"from {} where site = ? and path = ?", site, path)
				.cache().load(); 
	} 
	 
	public static ContentPage loadByTypeAndSite(String pageType, Site site) {
		return query(ContentPage.class,  
				"from {} where pageType = ? and site = ?", pageType, site)
				.cache().load(); 
Connect your IDE to all the code out there  Get Codota for Java