Grokbase Groups Cayenne dev June 2008
FAQ
Support for copy/paste of entities/attributes/relationships
-----------------------------------------------------------

Key: CAY-1080
URL: https://issues.apache.org/cayenne/browse/CAY-1080
Project: Cayenne
Issue Type: New Feature
Components: CayenneModeler GUI
Affects Versions: 3.0
Reporter: Andrey Razumovsky
Assignee: Andrus Adamchik


Support for copy/paste of entities/attributes/relationships.
This is GSoC 2008 task.

Some of my ideas follow.
We can implement copy-paste in two ways.

First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Anonymous at Jun 24, 2008 at 6:44 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981#action_12981 ]

    Andrus Adamchik commented on CAY-1080:
    --------------------------------------

    I haven't looked at this in a while, but IIRC Java integrates with the OS clipboard, so it would be ideal if CM copy/paste would operate using the clipboard as well. So this sort of makes it cross-project and also cross application. I.e. a user can paste what he copied to a text editor. (we can use XML serialization built into most mapping objects to provide text representation).
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Andrus Adamchik

    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mike Kienenberger at Jun 24, 2008 at 4:35 pm
    The two primary use cases I would love to have solved by this are:

    1) Copying a subset of attributes from one table to another (Typically
    a set of "INVALIDATED/INVALIDATE_DATE attributes or a generic ID
    primary key).

    2) Copying an entire Entity from one project to another.

    There are also times when I wish I could copy and paste the data
    description for a particular entity into an email when I'm discussing
    table structure with someone.

    My preference would be system-wide cut-and-paste.

    On 6/24/08, Andrus Adamchik (JIRA) wrote:

    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981#action_12981 ]

    Andrus Adamchik commented on CAY-1080:
    --------------------------------------

    I haven't looked at this in a while, but IIRC Java integrates with the OS clipboard, so it would be ideal if CM copy/paste would operate using the clipboard as well. So this sort of makes it cross-project and also cross application. I.e. a user can paste what he copied to a text editor. (we can use XML serialization built into most mapping objects to provide text representation).
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Andrus Adamchik

    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.

    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 10, 2008 at 4:55 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrey Razumovsky updated CAY-1080:
    -----------------------------------

    Attachment: 1080.zip

    The patch contains implementation of the cut-copy-paste functionality. It uses system buffer, so copy-paste can be done through multiple CM apps.

    Some of feature's advantages / limitations.
    1. CM data can be pasted in two ways: back in CM (like Cayenne object) or in text box (in XML format).
    2. Cut and Copy buttons work as 'Remove' button - tree objects are copied from main toolbar, attrs, rels etc. have their own buttons.
    3. Paste button is active when 'parent' of object(s) in the buffer is selected. E.g. to paste a datamap you must select parent datadomain or datanode.
    4. Following objects can be copied/pasted: DataMaps, Obj- and Db- entities, attrs, relations, queries, procedures, proc. parameters. That means, DataDomain and DataNode cannot be copied/pasted.
    5. CCP of multiple objects is allowed. Still, in the tree, only objects on the same level (with same parent) can be copied.
    6. CCP buttons are added in main menu, main toolbar, table panel toolbars, popup menus.
    7. Standard hotkeys (like Ctrl+C Ctrl+V) do work, but note that if you try to copy/paste when table cell is edited, default copy/paste will be done (as text information).
    8. When names do clash, they are automatically changed (like X -> Copy of X)
    9. Icons are taken from Eclipse, like other CM icons.
    10. Icons cannot be included in patch, so they are separated from txt patch file
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Andrus Adamchik
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 27, 2008 at 1:31 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Kevin Menard reassigned CAY-1080:
    ---------------------------------

    Assignee: Kevin Menard (was: Andrus Adamchik)
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 3, 2008 at 1:46 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091#action_13091 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    I've just gotten a chance to look at this. A few things jump out immediately.

    1) I have to chew over the changes to Cayenne core a bit more. Off hand, they don't seem bad, but something feels weird about it.

    2) While I can appreciate the cut working like a remove, it's a bit weird to be prompted to delete the item.

    3) I can't paste an ObjEntity I just cut back to the same DataMap. With the lack of an undo feature, the only reasonable thing for me to do is a revert the datamap.

    4) I think my font changed for labels. I'll have to verify that.

    Looking at #3 again, actually, I can't seem to paste at all. I even tried creating a new DataMap and was unable to paste the ObjEntity to that.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 3, 2008 at 1:47 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092#action_13092 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    The ability to paste as XML to a text editor is pretty nifty, by the way.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 3, 2008 at 6:55 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093#action_13093 ]

    Andrey Razumovsky commented on CAY-1080:
    ----------------------------------------

    1. There are only two minor changes in core. One is adding missing method to DataNode. Second making DbJoin class serializable - this is required for DbEntity and DbRelationship to be copied correctly. What do you find weird about that?

    2. I missed that. My 'delete without prompt' preference was always on... I'll fix that in next patch

    3. Could you describe the situation more in detail? Are there any log exceptions? I cannot reproduce that.

    4. My fonts are OK. Anyways, I don't think my patch could cause font changing.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 12, 2008 at 8:41 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098#action_13098 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    1) I don't see anything wrong with the changes to the core classes per se. I'm just wondering if the changes are necessary due to an oversight or due to a deliberate omission. I suppose it doesn't matter much.

    2) Great.

    3) There are no exceptions. I simply can't paste ObjEntities anywhere. I've tried cutting from one Datamap and pasting to that same Datamap. I've also tried from one Datamap to another Datamap. In both cases, the paste options remains disabled and the accelerator keys do nothing.

    Perhaps something is missing from the patch?

    4) You're probably right w.r.t. the fonts. I'll have to look into that some more.


    Also, now that I have the images, there's no need to submit the patches as a ZIP. Feel free to use the simpler diff format.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 15, 2008 at 10:34 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrey Razumovsky updated CAY-1080:
    -----------------------------------

    Attachment: patch-CAY-1080-2.txt

    New patch, with changed behavior around #2 and #3

    #2 Fixed that
    #3 I think I know why you cannot paste an entity - previously you needed to select DataMap to do that (so, when you press 'Cut', 'paste' button is still disabled). As this seems quite unintuitive, I decided to enable pasting an entity when another entity (or query, or procedure) is selected - it will be pasted to parent datamap. Hope this helps.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 19, 2008 at 3:49 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112#action_13112 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    I'm still having the paste problem with the latest patch. Selecting DataMap or anything contained in that map does not enable the paste action.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 19, 2008 at 3:59 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113#action_13113 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    Okay, I finally decided to debug this a bit myself. I'm getting the following swallowed exception:

    java.io.IOException: system clipboard data unavailable

    I noticed this in PasteAction#getState, but likely is a problem for cut and copy as well.

    Env.: MacOS X 10.5.5, Java5.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 19, 2008 at 4:08 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114#action_13114 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    So, it looks like copy and paste do put something in the clipboard. I can paste the XML into another app. However, the modeler cannot access the clipboard itself. More accurately, it can access the system clipboard, but there's nothing in there.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 19, 2008 at 5:44 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115#action_13115 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    And yet another observation.

    The contents are in the clipboard, but not associated with the registered Cayenne transferrer. Instead, the contents are stored with the following flavor:

    java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.lang.String]

    So, it looks like something is getting confused by our returning a String representation of the object.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Sep 24, 2008 at 12:18 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116#action_13116 ]

    Andrey Razumovsky commented on CAY-1080:
    ----------------------------------------

    You said paste doesn't work with ObjEntities, does it mean you can copy-paste anything else?

    Correct avaliable flavors for copied Cay object are:
    [java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.io.Serializable], java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.lang.String]]

    The first one is Cayenne flavor which enables paste button. I think IOException may be fine if flavor is not avaliable (however, I get "java.awt.datatransfer.UnsupportedFlavorException: Cayenne Object" in this case). That's why I let an exception be swallowed. So I think the problem is that content doesn't get into clipboard with Cayenne flavor (as java.io.Serializable). Could be that Mac doesn't support Serializable content, but I haven't found anything about that in Google.

    With my lack of Mac I cannot debug this anyhow, so I can only confirm CCP works on Win and Linux. I'm afraid we'll have to leave this till later

    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Oct 5, 2008 at 2:41 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135#action_13135 ]

    Kevin Menard commented on CAY-1080:
    -----------------------------------

    I finally figured out the root of the issue. I guess looking at the exceptions would have been helpful in the first place (this one wasn't picked by the console). Anyway, the issue was that org.apache.cayenne.exp.ExpressionParameter wasn't serializable. Making it implement Serializable fixed the problem.

    I'll do some more thorough testing and try to get this committed.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Oct 5, 2008 at 6:11 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Kevin Menard closed CAY-1080.
    -----------------------------

    Resolution: Fixed
    Fix Version/s: 3.0

    I've gone ahead and committed this, now that I have it working locally. There may be other issues to surface, but I'd like a larger audience to try it out.
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Fix For: 3.0

    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Oct 6, 2008 at 7:15 am
    [ https://issues.apache.org/cayenne/browse/CAY-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13137#action_13137 ]

    Andrey Razumovsky commented on CAY-1080:
    ----------------------------------------

    Thanks a lot, Kevin! Seems that objentities with qualifier did not get copied and nothing was bad with Mac..
    Support for copy/paste of entities/attributes/relationships
    -----------------------------------------------------------

    Key: CAY-1080
    URL: https://issues.apache.org/cayenne/browse/CAY-1080
    Project: Cayenne
    Issue Type: New Feature
    Components: CayenneModeler GUI
    Affects Versions: 3.0
    Reporter: Andrey Razumovsky
    Assignee: Kevin Menard
    Fix For: 3.0

    Attachments: 1080.zip, patch-CAY-1080-2.txt


    Support for copy/paste of entities/attributes/relationships.
    This is GSoC 2008 task.
    Some of my ideas follow.
    We can implement copy-paste in two ways.
    First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
    Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedJun 24, '08 at 5:57a
activeOct 6, '08 at 7:15a
posts18
users2
websitecayenne.apache.org

2 users in discussion

Anonymous: 17 posts Mike Kienenberger: 1 post

People

Translate

site design / logo © 2022 Grokbase