1. @AccessType("Property") - Is there a problem ir disadvantage forum.hibernate.org |
2. Problem with @AccessType("property") forum.hibernate.orgHi all, I have the following entity: @Entity public class FormattedDate { @Id private Long id; @Transient private SimpleDateFormat sdf; ... @AccessType("property") @Column(name="format") public String getFormat() { return sdf.toPattern(); } public void setFormat(String format) { this.sdf = new SimpleDateFormat(format); this.sdf.setLenient(false); } .. } So I supose that when I save a FormattedField object to database, the property 'format" should be saved ... |
3. AccessType.PROPERTY forum.hibernate.orgHi, i am using hibernate 3.6.1.Final. When I place @Access(AccessType.PROPERTY) on a field, hibernate warn me "Placing @Access(AccessType.PROPERTY) on a field does not have any effect." (PropertyContainer line 156). But this has effect on my annotated entity : setter and getter are called. If I remove this annotation setter and getter are not called anymore. Is it my entities environment which ... |