@Data
@Accessors(chain = true, fluent = true)
@Entity
@Table(name = "T_CHAT_MESSAGE")
public class ChatMessage implements Serializable
{
@Id
@GeneratedValue
private Long id;
private Date data;
@Column(length = 4000)
private String content;
@Column(name = "`FROM`", length = 20)
private String from;
@Column(name = "`TO`", length = 20)
private String to;
@Column(length = 20)
private String fromNumber;
@Column(length = 20)
private String toNumber;
}
In above code, the from column in database become `from', not
Uppercased,so, can not be selected.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.