Re: Unbound Entity (ObjEntity without DBEntity)

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Jul 30 2007 - 03:41:02 EDT

  • Next message: Andrus Adamchik: "Re: [JIRA] Created: (CAY-835) setting meaningful pk to zero turn on autogenerated keys"

    We may end up supporting that for another reason - handling
    horizontal inheritance.

    Andrus

    On Jul 30, 2007, at 10:34 AM, Adrian Wiesmann wrote:
    > Hello list
    >
    > I am having a question relating unbound ObjEntities. Probably this was
    > already discussed before but I was not able to find much in the
    > archives,
    > so here goes my question.
    >
    > Is it possible to extend Cayenne in a manner so that I could model an
    > ObjEntity which is not bound to a DBEntity? One of the usage
    > scenarios is
    > when I have a query frame where the user can enter some values
    > which are
    > then interpreted by the business logic (search frame to query a
    > user table
    > as example). The benefit of using unbound tables is that the UI
    > already
    > has a renderer which knows how to render/display an ObjEntity (if
    > there is
    > a corresponding DataView) and all the data binding to the Swing
    > components
    > would be available as well. That would be a huge time saver for the
    > developer.
    >
    > Another scenario is when I have a report engine which knows how to
    > render
    > ObjEntities with DataViews. I could then create a dynamic ObjEntity
    > which
    > is not bound to a DB Entity but filled by my own code and which is
    > then
    > handed over to the report engine.
    >
    > Was such an extension discussed before? What are your thoughts on
    > this?
    >
    > Regards,
    > Adrian
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Jul 30 2007 - 03:41:29 EDT