Class LocalizedEntity
- java.lang.Object
-
- de.knightsoftnet.gwtp.spring.shared.data.jpa.domain.AbstractPersistable<Long>
-
- de.knightsoftnet.gwtp.spring.shared.db.LocalizedEntity
-
- All Implemented Interfaces:
LocalizedValue<String,String>,Serializable,org.springframework.data.domain.Persistable<Long>
@Entity public class LocalizedEntity extends AbstractPersistable<Long> implements LocalizedValue<String,String>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalizedEntity()LocalizedEntity(Long id)LocalizedEntity(Long id, Map<String,String> map)constructor initialize id and localized map.LocalizedEntity(Map<String,String> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,String>getLocalizedText()StringgetLocalizedText(String plocale)inthashCode()voidputLocalizedText(String plocale, String ptext)voidsetLocalizedText(Map<String,String> plocalizedText)-
Methods inherited from class de.knightsoftnet.gwtp.spring.shared.data.jpa.domain.AbstractPersistable
getId, isNew, setId, toString
-
-
-
-
Constructor Detail
-
LocalizedEntity
public LocalizedEntity()
-
LocalizedEntity
public LocalizedEntity(Long id)
-
-
Method Detail
-
setLocalizedText
public void setLocalizedText(Map<String,String> plocalizedText)
- Specified by:
setLocalizedTextin interfaceLocalizedValue<String,String>
-
putLocalizedText
public void putLocalizedText(String plocale, String ptext)
- Specified by:
putLocalizedTextin interfaceLocalizedValue<String,String>
-
getLocalizedText
public Map<String,String> getLocalizedText()
- Specified by:
getLocalizedTextin interfaceLocalizedValue<String,String>
-
getLocalizedText
public String getLocalizedText(String plocale)
- Specified by:
getLocalizedTextin interfaceLocalizedValue<String,String>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractPersistable<Long>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractPersistable<Long>
-
-