AVM stores are renamable. Beware. Database schema has changed since I needed to

introduce a synthetic primary key into the stores table.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-12-02 20:03:20 +00:00
parent 57424368b7
commit b8ff632f15
15 changed files with 169 additions and 6 deletions

View File

@@ -61,6 +61,11 @@ public class AVMStoreImpl implements AVMStore, Serializable
{
static final long serialVersionUID = -1485972568675732904L;
/**
* The primary key.
*/
private long fID;
/**
* The name of this AVMStore.
*/
@@ -130,6 +135,24 @@ public class AVMStoreImpl implements AVMStore, Serializable
AVMDAOs.Instance().fVersionRootDAO.save(versionRoot);
}
/**
* Setter for hibernate.
* @param id The primary key.
*/
protected void setId(long id)
{
fID = id;
}
/**
* Get the primary key.
* @return The primary key.
*/
public long getId()
{
return fID;
}
/**
* Set a new root for this.
* @param root
@@ -704,10 +727,10 @@ public class AVMStoreImpl implements AVMStore, Serializable
}
/**
* Set the name of this AVMStore. Hibernate.
* Set the name of this AVMStore.
* @param name
*/
protected void setName(String name)
public void setName(String name)
{
fName = name;
}