Results 1 to 7 of 7

Thread: Field disappeared in GUI

  1. #1

    Red face Field disappeared in GUI

    It's about inheritance!

    I have an abstractClassificator entity with various fields id, description...
    Then a booleanQueryClassificator --extends from it. This adds a simple 'query' string field.
    Why after controller scaffold.... I can't see 'Query ________' textfield in my app?
    Code:
    entity --class ~.domain.BooleanQueryClassificator --testAutomatically --identifierField jpaId --extends ~.domain.AbstractClassificator
    field string query
    controller scaffold ~.web.BooleanQueryClassificatorController
    Something like this...
    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I can't see any reason the field wouldn't be visible on the scaffolded views.

    Would you be able to run the 'backup' command and attach the resulting ZIP to this thread so we can take a closer look?

    Thanks
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3

    Thumbs up My app

    Thanks a lot for your help!
    I send you a log (backup is too big 150 kb)
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    I ran your script and indeed the query field is missing. Would you mind opening a Jira ticket for this so we can investigate further? It would be great if you could reduce your script so it just focusses on reproducing the issue.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  5. #5

    Default Script 'bugged'

    project --topLevelPackage it.pippo
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.Astratto --testAutomatically
    field string --fieldName code --notNull
    field string --fieldName descr
    field reference --fieldName parent --type ~.Astratto --class ~.Astratto
    field set --fieldName children --element ~.Astratto --mappedBy parent --notNull false --cardinality ONE_TO_MANY --class ~.Astratto

    entity --class ~.Concreto --testAutomatically --extends ~.Astratto
    field string query
    controller scaffold --class ~.web.MyController

    Without the "bold" fields I see query! That two fields stand for circular reference: that table must implement a Tree data structure, I mean.
    May ROO have some problems with that?

  6. #6
    Join Date
    Sep 2009
    Posts
    101

    Default

    Code:
    booleanQueryClassificator
    I'm sorry I can't add anything to this, but I believe Dr. Doofenshmirtz might be interested in your booleanQueryClassificatorInator if you can get it working!

  7. #7
    Join Date
    Nov 2009
    Posts
    28

    Lightbulb Similar issue...

    I have seen a similar problem and have determined a workaround.

    The application I am working on has several 1:MANY and MANY:MANY relationships. I noticed that only half of my forms were being created with all of the fields.

    After a few hours of testing, I determined the following roo script flow resolves the problem:

    1) Project topLevelPackage
    2) Persistence setup
    3) Entities and fields (WITHOUT 1:1, 1:M, M:M relationships)
    4) Once all of the entities and fields are scripted, then add the 1:1.
    5) Then add the MANY_TO_MANY
    6) Then add the field reference and field set lines for the 1:M.
    7) Generate controllers
    8) security
    9) Logging

    This has been working for me consistently.

    Hope this is helpful to others.

Posting Permissions

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