package com.coding4people.mosquitoreport.api.models;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;

@DynamoDBTable(tableName = "picture")
public class Picture {
    @DynamoDBHashKey
    private String focusguid;
    
    @DynamoDBRangeKey
    private String createat;
    
    @DynamoDBAttribute
    private String guid;

    public String getFocusguid() {
        return focusguid;
    }

    public void setFocusGuid(String focusguid) {
        this.focusguid = focusguid;
    }

    public String getCreateat() {
        return createat;
    }

    public void setCreateAt(String createat) {
        this.createat = createat;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }
    
    public String getPath() {
        return focusguid + "/" + getGuid();
    }
}

@@ -553,16 +553,73 @@
 ng guid;
+%0A    %0A    @DynamoDBAttribute%0A    private String filename;
 %0A%0A    pu
@@ -1096,32 +1096,46 @@
 %7B%0A        return
+ %22pictures/%22 +
  focusguid + %22/%22
@@ -1146,16 +1146,220 @@
 etGuid()
+ + %22/%22 + (filename == null ? %22picture%22 : filename);%0A    %7D%0A%0A    public String getFilename() %7B%0A        return filename;%0A    %7D%0A%0A    public void setFilename(String filename) %7B%0A        this.filename = filename
 ;%0A    %7D%0A

Add filename to picture