Created
August 10, 2011 14:41
-
-
Save knowuh/1136957 to your computer and use it in GitHub Desktop.
Wise4 StepWork hibernate annotations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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