@AccessType. Custom PropertAccessor Hibernate does not work

Description

Hi,

I'm trying to migrate from Hibernate 3.5.6 to 4.1.1. Faced with several problems one of them is that @AccessType is not working. My custom Getters nad Settors are not called at anytime.

Code example:
@NotNull
@Size(min = PASSWORD_MIN_SIZE, max = MAX_SIZE)
@Pattern(regexp = "((?=.
d)(?=.[a-zA-Zа-яА-Я]).*)",
message = "{javax.validation.constraints.Pattern.password.message}")
@Column(name = "user_password", nullable = false)
@AccessType(value = "com.utils.PasswordPropertyAccessor")
private String password;

Environment

Spring 3.1.X

Activity

Show:
Christoph Wulf
July 25, 2013, 4:39 PM

Got the same problem annotating the @Id field of my base entity with @AccessType(value = "myproject.ScalaPropertyAccessor").

I expected all properties were accessed via my custom property accessor in Scala's style, but nothing happened.

Stanislav Zaluzhsky
April 25, 2012, 9:05 PM

Test maven project

Assignee

Unassigned

Reporter

Stanislav Zaluzhsky