Merged V2.2 to HEAD

8219: Fix audit date behaviour, auto truncate all values to fit, fix retrying transaction use
         AR-1923   AWC-1637


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8486 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-03-10 16:42:56 +00:00
parent d156b449cd
commit d05655f3c7
12 changed files with 285 additions and 244 deletions

View File

@@ -42,7 +42,7 @@ public class AuditDateImpl implements AuditDate
/**
* Surrogate key
*/
private long id;
private Long id;
/**
* The date
@@ -171,12 +171,12 @@ public class AuditDateImpl implements AuditDate
this.halfYear = halfYear;
}
public long getId()
public Long getId()
{
return id;
}
protected void setId(long id)
protected void setId(Long id)
{
this.id = id;
}
@@ -251,14 +251,5 @@ public class AuditDateImpl implements AuditDate
{
return this.date.hashCode();
}
/**
* Helper method to get the latest audit date
*/
public static AuditDate getLatestDate(Session session)
{
Query query = session.getNamedQuery(HibernateAuditDAO.QUERY_LAST_AUDIT_DATE);
return (AuditDate) query.uniqueResult();
}
}