1. is it possible to make all fields of an object @Transient by default stackoverflow.comI have a base Entity class which will be derived in more than a hundred of a subclasses. In order to be sure that persisted fields will be the ones I want ... |
2. can not create an object with JPA (id doesn't have a default forum.hibernate.orgpublic class Subject implements java.io.Serializable { /** * */ private static final long serialVersionUID = -6667237497292561396L; private Integer subId; private Integer subCenter; .... other properties......... @Id @Column(name ... |
3. How to define Object property default value ? forum.hibernate.orgHi, Basically, I would like to save object within a table and automatically update on column of the same table which log current date when insert occured. How can I specified within the O/R mapping that the default value associated to a dedicated column named DATE_UPDATED in the current date (GETDATE for sql server ) ? If this can be done ... |