I am trying to run insert query in enterprise application however, I am getting Transaction aborted exception Column ‘fk_game_id’ cannot be null. To display foreign keys in my form I am using this code based on this link here <h:selectOneMenu value="#{controller.gameList}" > <f:selectItem itemValue="#{null}" itemLabel="#{game.gameDescription}"/> <f:selectItems value="#{controller.gameLists}" var="game" itemValue="#{game.gameId}" itemLabel="#{game.gameDescription}"/> </h:selectOneMenu> UPDATE: I need to […]
The post Inserting data to table with foreign keys Doesn’t insert anything in java EE application jsf appeared first on BlogoSfera.