[seam-issues] [JBoss JIRA] Assigned: (JBSEAM-4305) JpaIdentityStore ignores @Column names for the @UserPrincipal
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Mon Feb 22 22:59:18 EST 2010
[ https://jira.jboss.org/jira/browse/JBSEAM-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane Bryzak reassigned JBSEAM-4305:
------------------------------------
Assignee: Shane Bryzak
> JpaIdentityStore ignores @Column names for the @UserPrincipal
> -------------------------------------------------------------
>
> Key: JBSEAM-4305
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4305
> Project: Seam
> Issue Type: Bug
> Components: Security
> Affects Versions: 2.1.1.GA
> Reporter: Eric Jung
> Assignee: Shane Bryzak
>
> I'm using the JpaIdentityStore as described at http://docs.jboss.com/seam/2.1.1.GA/reference/en-US/html_single/#d0e8804.
> If I define my User entity like this:
> @Entity
> @Table(name = "USERS")
> @Scope(ScopeType.SESSION)
> public class User implements java.io.Serializable {
> ...
> @UserPrincipal
> @Column(name = "USER_IDENT", nullable = false, length = 300)
> private String user;
> ...
> }
> then Seam generates the following EQL/HQL to authenticate credentials:
> select u from com.chcf.cams.entities.User u where user = :username
> it should instead be:
> select u from com.chcf.cams.entities.User u where user_ident = :username
> (Note the @Column annotation maps the Java field |user| to the database column USERS.USER_IDENT)
> Because of this, authentication *always* fails with this code.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list