mirror of https://github.com/apache/archiva.git
Fixing broken code.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@512450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08d67a9bac
commit
df9ebafaf9
|
@ -42,17 +42,20 @@ public class ArtifactPersistence
|
|||
{
|
||||
return new String[] { "ArtifactKeys" };
|
||||
}
|
||||
|
||||
private ArtifactKey toKey(Artifact artifact)
|
||||
|
||||
private ArtifactKey toKey( Artifact artifact )
|
||||
{
|
||||
ArtifactKey key = new ArtifactKey();
|
||||
key.setGroupId( artifact.getGroupId() );
|
||||
key.setArtifactId( artifact.getArtifactId() );
|
||||
key.set
|
||||
key.setVersion( artifact.getVersion() );
|
||||
key.setClassifier( artifact.getClassifier() );
|
||||
key.setType( artifact.getType() );
|
||||
return key;
|
||||
}
|
||||
|
||||
public void create( Artifact artifact ) throws ArchivaDatabaseException
|
||||
public void create( Artifact artifact )
|
||||
throws ArchivaDatabaseException
|
||||
{
|
||||
SqlMapClient sqlMap = ibatisHelper.getSqlMapClient();
|
||||
|
||||
|
@ -62,7 +65,6 @@ public class ArtifactPersistence
|
|||
|
||||
getLogger().info( "Adding artifact." );
|
||||
sqlMap.update( "addArtifact", artifact );
|
||||
|
||||
|
||||
sqlMap.commitTransaction();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue