Announcement Announcement Module
Collapse
No announcement yet.
Content negotiation alternatives, and inconsistencies with MongoDB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Content negotiation alternatives, and inconsistencies with MongoDB

    Hi,

    I've searched JIRA and the forums, but couldn't find any reason why "json all" would not subsequently result in *_Controller_Json.aj files for the web layer in 1.2.0.RELEASE. This used to work in 1.1.5.RELEASE.

    Please advise. I've tested both JPA and Mongo entities.

    Here's a couple of scripts you can try yourself:

    Mongo

    Code:
    project com.domain.example
    mongo setup
    entity mongo --class ~.domain.ExampleBean --testAutomatically
    field string --fieldName name --sizeMin 2 --notNull --class ~.domain.ExampleBean
    field other --fieldName json --type java.util.Map --class ~.domain.ExampleBean
    repository mongo --interface ~.repository.ExampleBeanRepository --entity ~.domain.ExampleBean
    service --interface ~.service.ExampleBeanService --entity ~.domain.ExampleBean
    json all
    web mvc setup
    web mvc all --package ~.web
    JPA

    Code:
    project com.domain.example
    jpa setup --database H2_IN_MEMORY --provider HIBERNATE 
    entity jpa --class ~.domain.ExampleBean --testAutomatically
    field string --fieldName name --sizeMin 2 --notNull --class ~.domain.ExampleBean
    field other --fieldName json --type java.util.Map --class ~.domain.ExampleBean
    repository jpa --interface ~.repository.ExampleBeanRepository --entity ~.domain.ExampleBean
    service --interface ~.service.ExampleBeanService --entity ~.domain.ExampleBean
    json all
    web mvc setup
    web mvc all --package ~.web

    Why does it not exhibit the same behaviour as 1.1.5.RELEASE?

    Thanks,
    Juan

  • #2
    Did you run the 'web mvc json all' command at the end?

    Comment


    • #3
      Originally posted by Alan Stewart View Post
      Did you run the 'web mvc json all' command at the end?
      That solves it, thank you Alan.

      I also finally spotted this in the upgrade docs:

      The presence of @RooWebScaffold does not automatically trigger Spring MVC JSON integration any more.

      Comment

      Working...
      X