At line 272 added 1 line. |
|
At line 568 added 3 lines. |
/** |
* @author Rance Shields |
*/ |
At line 568 removed 3 lines. |
|
public Weblog getWeblog(Long weblogId) { |
Weblog weblog = (Weblog) getHibernateTemplate().get(Weblog.class, weblogId); |
At line 572 changed 4 lines. |
if (weblog == null) { |
log.warn("uh oh, weblog '" + weblogId + "' not found..."); |
throw new ObjectRetrievalFailureException(Weblog.class, weblogId); |
} |
public Weblog getWeblog(Long weblogId) { |
Weblog weblog = (Weblog) getHibernateTemplate().get(Weblog.class, |
weblogId); |
At line 577 changed 2 lines. |
return weblog; |
} |
if (weblog == null) { |
log.warn("uh oh, weblog '" + weblogId + "' not found..."); |
throw new ObjectRetrievalFailureException(Weblog.class, weblogId); |
} |
At line 580 changed 3 lines. |
public List getWeblogs(Weblog weblog) { |
return getHibernateTemplate().find("from Weblog wl order by upper(wl.blogTitle)"); |
} |
return weblog; |
} |
At line 584 changed 3 lines. |
public void saveWeblog(final Weblog weblog) { |
getHibernateTemplate().saveOrUpdate(weblog); |
} |
public List getWeblogs(Weblog weblog) { |
return getHibernateTemplate().find( |
"from Weblog wl order by upper(wl.blogTitle)"); |
} |
At line 588 changed 3 lines. |
public void removeWeblog(Long weblogId) { |
getHibernateTemplate().delete(getWeblog(weblogId)); |
} |
public void saveWeblog(final Weblog weblog) { |
getHibernateTemplate().saveOrUpdate(weblog); |
} |
At line 592 changed 1 line. |
public List getEntries(Long weblogId) { |
public void removeWeblog(Long weblogId) { |
getHibernateTemplate().delete(getWeblog(weblogId)); |
} |
|
public List getEntries(Long weblogId) { |
At line 602 added 1 line. |
|
At line 604 added 2 lines. |
|
|