Uploaded image for project: 'Hibernate Commons Annotations'
  1. HCANN-48

@AccessType. Custom PropertAccessor Hibernate does not work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.1.Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Spring 3.1.X
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      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;

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: