Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created August 10, 2011 14:41
Show Gist options
  • Save knowuh/1136957 to your computer and use it in GitHub Desktop.
Save knowuh/1136957 to your computer and use it in GitHub Desktop.
Wise4 StepWork hibernate annotations
public class StepWork extends PersistableDomain {
protected static String fromQuery = "from StepWork";
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id = null;
@ManyToOne(cascade = {CascadeType.PERSIST})
private UserInfo userInfo;
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.REFRESH, CascadeType.MERGE})
private Node node;
@Column(name="postTime")
private Timestamp postTime;
@Column(name="startTime")
private Timestamp startTime;
@Column(name="endTime")
private Timestamp endTime;
@Column(name="duplicateId")
private String duplicateId;
@Column(name="data", length=1024)
private String data;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment