Skip to content

Commit

Permalink
use name/value in EntryDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
malteo committed Feb 23, 2024
1 parent 0e2127a commit bef90a2
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@

import javax.validation.constraints.NotNull;

@ApiModel( description = "A key/value pair" )
@ApiModel( description = "A name/value pair" )
public class EntryDTO implements DTO
{
@NotNull
private String key;
private String name;

private String value;

public EntryDTO()
{
}

public EntryDTO( String key, String value )
public EntryDTO( String name, String value )
{
this.key = key;
this.name = name;
this.value = value;
}

public String getKey()
public String getName()
{
return key;
return name;
}

public void setKey( String key )
public void setName( String name )
{
this.key = key;
this.name = name;
}

public String getValue()
Expand Down

0 comments on commit bef90a2

Please sign in to comment.