Class PrimitiveTestEntity
java.lang.Object
org.fastnate.generator.test.primitive.PrimitiveTestEntity
Entity to test primitive properties.
- Author:
- Tobias Liefke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Colorprivate Stringprivate Longprivate byte[]private char[]private @NotNull @Size(min=1) Stringprivate static final intprivate TestEnumprivate SerTestObjectprivate TestEnumprivate booleanprivate byteprivate charprivate doubleprivate floatprivate intprivate longprivate shortprivate Stringprivate String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrimitiveTestEntity(String name) Creates a new instance ofPrimitiveTestEntity. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColor()getGroup()getId()byte[]char[]getName()bytechardoublefloatintlongshortinthashCode()booleanvoidvoidvoidvoidsetLobBytes(byte[] lobBytes) voidsetLobChars(char[] lobChars) voidvoidsetOrdinalEnum(TestEnum ordinalEnum) voidsetSerializable(SerTestObject serializable) voidsetStringEnum(TestEnum stringEnum) voidsetTestBoolean(boolean testBoolean) voidsetTestByte(byte testByte) voidsetTestChar(char testChar) voidsetTestDouble(double testDouble) voidsetTestFloat(float testFloat) voidsetTestInt(int testInt) voidsetTestLong(long testLong) voidsetTestShort(short testShort) voidsetTransient1(String transient1) voidsetTransient2(String transient2) toString()
-
Field Details
-
NAME_LENGTH
private static final int NAME_LENGTH- See Also:
-
id
-
name
-
transient1
-
transient2
-
group
-
testChar
private char testChar -
testBoolean
private boolean testBoolean -
testByte
private byte testByte -
testShort
private short testShort -
testInt
private int testInt -
testLong
private long testLong -
testFloat
private float testFloat -
testDouble
private double testDouble -
lobChars
private char[] lobChars -
lobBytes
private byte[] lobBytes -
serializable
-
ordinalEnum
-
stringEnum
-
color
-
-
Constructor Details
-
PrimitiveTestEntity
Creates a new instance ofPrimitiveTestEntity.- Parameters:
name- the name of the entity
-
PrimitiveTestEntity
protected PrimitiveTestEntity()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getId
-
getName
-
getTransient1
-
getTransient2
-
getGroup
-
getTestChar
public char getTestChar() -
isTestBoolean
public boolean isTestBoolean() -
getTestByte
public byte getTestByte() -
getTestShort
public short getTestShort() -
getTestInt
public int getTestInt() -
getTestLong
public long getTestLong() -
getTestFloat
public float getTestFloat() -
getTestDouble
public double getTestDouble() -
getLobChars
public char[] getLobChars() -
getLobBytes
public byte[] getLobBytes() -
getSerializable
-
getOrdinalEnum
-
getStringEnum
-
getColor
-
setId
-
setName
-
setTransient1
-
setTransient2
-
setGroup
-
setTestChar
public void setTestChar(char testChar) -
setTestBoolean
public void setTestBoolean(boolean testBoolean) -
setTestByte
public void setTestByte(byte testByte) -
setTestShort
public void setTestShort(short testShort) -
setTestInt
public void setTestInt(int testInt) -
setTestLong
public void setTestLong(long testLong) -
setTestFloat
public void setTestFloat(float testFloat) -
setTestDouble
public void setTestDouble(double testDouble) -
setLobChars
public void setLobChars(char[] lobChars) -
setLobBytes
public void setLobBytes(byte[] lobBytes) -
setSerializable
-
setOrdinalEnum
-
setStringEnum
-
setColor
-