24 lines
644 B
Java
24 lines
644 B
Java
package de.vanitasvitae.fasel.db.entity;
|
|
|
|
import com.j256.ormlite.field.DataType;
|
|
import com.j256.ormlite.field.DatabaseField;
|
|
import com.j256.ormlite.table.DatabaseTable;
|
|
import de.vanitasvitae.fasel.db.dao.impl.AccountDaoImpl;
|
|
|
|
@DatabaseTable(tableName = "accounts", daoClass = AccountDaoImpl.class)
|
|
public class Account {
|
|
|
|
@DatabaseField(id = true, dataType = DataType.LONG)
|
|
private String accountId;
|
|
|
|
@DatabaseField(canBeNull = false, dataType = DataType.STRING_BYTES)
|
|
private String jid;
|
|
|
|
@DatabaseField(canBeNull = false, dataType = DataType.STRING_BYTES)
|
|
private char[] password;
|
|
|
|
public Account() {
|
|
|
|
}
|
|
}
|