1 Reply Latest reply on Mar 27, 2006 3:27 PM by mark smith

    two foreign keys to the same table

    mark smith Newbie

      I'm creating an example application that creates a reservation for a car rental. I created a reservation table that had two references to a location table. One for pickup and one for drop off. When I generate the code I get alot of compile problems with this. The one that just have one seem to work but when more than one, it doesn't work. Is there a work around for this?

      I've fixed a lot of the compile problems but there are few that are not so easy. I also have no idea if I'm on the right path.

        • 1. Re: two foreign keys to the same table
          mark smith Newbie

          I've got most the compile errors corrected. These errors were mostly duplicate method names and duplicate class name issues.

          but once I've got those fixed, I've got this error in bringing up jboss and deploying the seamapp ear.


          2006-03-27 14:22:10,640 INFO [org.jboss.seam.Component] Component: locationEditor, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.devx.reservation.LocationEditorBean, JNDI: seamapp/LocationEditorBean/local
          2006-03-27 14:22:10,640 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seamapp]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.IllegalStateException: Missing value() for @DataModelSelection with multiple @DataModels
          at org.jboss.seam.Component.initMembers(Component.java:421)
          at org.jboss.seam.Component.(Component.java:176)
          at org.jboss.seam.Component.(Component.java:142)
          at org.jboss.seam.Component.(Component.java:137)
          at org.jboss.seam.Component.(Component.java:132)
          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:244)
          at org.jboss.seam.init.Initialization.addComponents(Initialization.java:225)
          at org.jboss.seam.init.Initialization.init(Initialization.java:93)
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)