Results 1 to 5 of 5

Thread: javax.persistence.Embedded

  1. #1
    Join Date
    Aug 2008
    Location
    Coffs Harbour, Australia
    Posts
    11

    Default javax.persistence.Embedded

    Hi,

    Code:
    @Entity
    @RooJavaBean
    @RooEntity
    public class User {
    ...    
        @Embedded
        private Address address;    
    ...
    }
    
    @Embeddable
    @RooJavaBean
    public class Address {
    ...
    }
    Above code is not working , did I missed something or this feature is not supported yet ?

    I have fun with Roo :-) Thank you!
    Sid

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

    Default

    What exactly doesn't work? What are you expecting?
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Aug 2008
    Location
    Coffs Harbour, Australia
    Posts
    11

    Default

    I tried to reproduce the exception , but seems every things working now !
    Could we expect generated create.jspx file in User form be in format like this ?
    Code:
    <form:input path="address.city"  .../>
    I want edit all Address fields inside of User form. Thanks for any comment on this.

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

    Default

    Hi Sid,

    I am glad it is working now again. Sometimes a project refresh or clean does wonders . As for the support for embedded in Web scaffolding - that is currently not supported but you can open a ticket for it in Jira and we can look into it.

    Cheers,
    Stefan

  5. #5
    Join Date
    Aug 2008
    Location
    Coffs Harbour, Australia
    Posts
    11

    Default

    I've created a ticket in Jira : http://jira.springframework.org/browse/ROO-345
    Cheers,
    Sid

Posting Permissions

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