Results 1 to 3 of 3

Thread: entity jpa command fail

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    Default entity jpa command fail

    Hi all,
    i'm studyng Spring Roo and i'm following the official tutorial: http://static.springsource.org/sprin...beginning.html

    I have a problem with 'entity jpa' command:

    Code:
    roo> project --topLevelPackage test
    Created ROOT\pom.xml
    Created SRC_MAIN_JAVA
    Created SRC_MAIN_RESOURCES
    Created SRC_TEST_JAVA
    Created SRC_TEST_RESOURCES
    Created SRC_MAIN_WEBAPP
    Created SRC_MAIN_RESOURCES\META-INF\spring
    Created SRC_MAIN_RESOURCES\log4j.properties
    Created SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
    test roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    Created SRC_MAIN_RESOURCES\META-INF\spring\database.properties
    Updated ROOT\pom.xml [added dependencies org.hsqldb:hsqldb:1.8.0.10, org.hibernate:hibernate-core:3.6.7.Final, org.hibernate:hibernate-entitymanager:3.6.7.Final, org.hibernate.javax.
    1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:
    :spring-orm:${spring.version}, commons-pool:commons-pool:1.5.4, commons-dbcp:commons-dbcp:1.3; added repository https://repository.jboss.org/nexus/content/repositories/releases]
    Updated SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
    Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
    test roo> entity jpa --class HelloWorld --testAutomatically
    Option '' is not available for this command. Use tab assist or the "help" command to see the legal options
    ~.HelloWorld roo>
    where am i wrong?

    thanks!

  2. #2
    Join Date
    Dec 2005
    Posts
    929

    Default

    If you're using 1.2.0.M1 or earlier, then 'entity jpa' is not available - just 'entity' . The new command will be available in 1.2.0.RC1 or nightly snapshots
    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3
    Join Date
    Nov 2011
    Posts
    2

    Default

    Thank you very much Alan! (i'm using 1.2.0.M1 version)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •