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:
Joakim Erdfelt 2007-02-27 22:19:08 +00:00
parent 08d67a9bac
commit df9ebafaf9
1 changed files with 7 additions and 5 deletions

View File

@ -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();
}