2 Replies Latest reply on Jul 12, 2007 5:52 PM by wesleyhales

    Multiple schemas using seam-gen settings

    wesleyhales

      So I have 2 sets of entitybeans from 2 different schemas. Before I ran seam generate-entities I edited the seam-gen.reveng.xml file within each project to read as follows.

      <schema-selection match-schema="schema-a" match-table="table123"/>
      


      and in the other project

      <schema-selection match-schema="schema-b" match-table="table345"/>
      


      The table names are different and so are the schemas. In my persistence.xml I have
      <property name="hibernate.default_schema" value="schema-a"/>
      


      How can I setup my persitence so that entitybeans can access different schemas dynamically? Or where are the docs that tell me how to do this?

      Thanks!