Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3587

Entity implementing interface with getId(): double generation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.3.1.RC2, 1.3.1.RELEASE
    • Fix Version/s: 2.0.0.M2
    • Component/s: GENERAL OBJECTS
    • Labels:
      None
    • Environment:
      Java 7

      Description

      it's me again, annother bug joining ROO-3585 and ROO-3584...

      interface:

      public interface DemoInterface {
      	
      	public Long getId();
      }
      

      Entity Bean:

      @RooJavaBean
      @RooJpaActiveRecord
      public class DemoEntity implements DemoInterface {
      
          private String name;
          
      }
      

      results in getId() generated in DemoEntity_Roo_Jpa_Entity.aj AND in DemoEntity_Roo_JavaBean.aj, too. (of course resulting in an compile error.

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              markus.strenn Markus Strenn
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: