mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user