Package de.xima.fc.dto
Class NamedEntityDto
- java.lang.Object
-
- de.xima.fc.dto.NamedEntityDto
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BasicProjectDto
public class NamedEntityDto extends Object implements Serializable
Simple DTO wrapping the entity attributes 'id' and 'name' (as used e.g. for select boxes).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedEntityDto(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Function<de.xima.cmn.dao.interfaces.IEntity<Long>,String> nameFunc)Creates a new instance based on an entity and a custom name provider.NamedEntityDto(Long id, String name)Creates a new instance based on the provided attributes.
-
-
-
Constructor Detail
-
NamedEntityDto
public NamedEntityDto(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Function<de.xima.cmn.dao.interfaces.IEntity<Long>,String> nameFunc)
Creates a new instance based on an entity and a custom name provider.- Parameters:
entity- the entitynameFunc- function for creating the value of the DTO's 'name' attribute
-
-