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

Using gae Key in model leads to a finder with the (Key id) param

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: None
    • Component/s: GWT

      Description

      Hi all

      My problem in a few line is that for a domain object:
      public class OrderItem {

      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id")
      private Key id;
      //...
      }

      I find my self with
      @RooGwtRequest("fr.onevu.vume.model.OrderItem")
      @ServiceName("fr.onevu.vume.model.OrderItem")
      public interface OrderItemRequest extends RequestContext {
      abstract Request<fr.onevu.vume.client.proxy.OrderItemProxy> findOrderItem(Key id);

      //...
      }

      Wich doesn't compile since Key can't be transformed to javascript.

      A possible workaround would be to define a Key substitute in GWT (as done for the java.lang classes), but I think this coice should be left to developers (who can decide to translate the key to a String for the web).

      Best Regards,
      Zied Hamdi

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zhamdi Zied Hamdi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: