📄 forest.java
字号:
//$Id: Forest.java,v 1.3 2005/02/19 19:07:50 epbernard Exp $package org.hibernate.test.metadata.entity;import org.hibernate.annotations.OptimisticLockType;import org.hibernate.annotations.PolymorphismType;import org.hibernate.annotations.BatchSize;import org.hibernate.annotations.Type;import org.hibernate.annotations.Where;import javax.ejb.Entity;import javax.ejb.Id;import javax.ejb.GeneratorType;/** * Use hibernate specific annotations * @author Emmanuel Bernard */@Entity@BatchSize(size=5)@org.hibernate.annotations.Entity( selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL, polymorphism = PolymorphismType.EXPLICIT)@Where(clause="1=1")public class Forest { private Integer id; private String name; private long length; private String longDescription; @Type(type="text") public String getLongDescription() { return longDescription; } public void setLongDescription(String longDescription) { this.longDescription = longDescription; } public long getLength() { return length; } public void setLength(long length) { this.length = length; } @Id(generate = GeneratorType.AUTO) public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -