Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] FetchGroups with a transient attribute

I’m trying to retrieve a cursor that returns a fetch group where one of the attributes is transient.  I get the error message:

Attribute usersName of FetchGroup(usersName){usersName, userId} is not mapped.  The transient field is usersName which is a concatenation of lastname, firstname etc. from the users table.

 

Here’s what I have:

 

@Entity

@Table(name = "USERS")

    @FetchGroup(name="usersName", attributes={

        @FetchAttribute(name="userId"),

        @FetchAttribute(name="usersName")})

 

 

    @Transient

    private String usersName; // getters and setters used

 

How do I do this?

 

Thanks,

 

Michele


Back to the top