key « JPA « JSF Q&A





1. Target Unreachable when Access a composite key from JSF    stackoverflow.com

Inside my JSF I did

<h:outputLabel value="Group:" for="group" />
<h:inputText id="group" value="#{newUserController.group.groupKey.groupId}" title="Group Id" />
Group.java
@Entity
public class Group {

    @EmbeddedId
    private GroupKey groupKey;

    @ManyToOne
 ...