4 Replies Latest reply: Oct 3, 2012 12:57 PM by nicolas duminil RSS

    How is "persistence setup" statement supposed to be used ?

    nicolas duminil Expert



      Trying to use Forge in JBDS 5.0. The "documentation" says that, in order to setup the persistence provider one should use the following command:


      $ persistence setup --provider {your JPA implementation} --container {your container}


      What "{your JPA implementation}" and "{your container}" is supposed to be ? Are they constants ? If yes, what are the acceptable values ? The quickstart is showing the following example:


      persistence setup --provider HIBERNATE --container JBOSS_AS7 ;


      While I understand what HIBERNATE means, even if I don't know hos to specify hibernate 3 or 4, I don't know how to specify another JPA provider, for example Toplink. Also, what container is supposed to mean ? For example, what is ne supposed to use for JBoss EAP 6.0 ?


      Also, the documentation says:


      "you can also specify additional connection parameters such as JNDI data-source names, JDBC connection information, and data-source types"


      Very interesting ! And how ? Is one supposed to guess ? That's crazy that people release completely undocumented software !


      Many thanks anyway to anyone for any help.


      Kind regards,