You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Scott Anderson (JIRA)" <de...@cayenne.apache.org> on 2008/02/19 21:15:49 UTC
[JIRA] Created: (CAY-987) Specifying PK when creating a new object
in DB generated PK mode
Specifying PK when creating a new object in DB generated PK mode
----------------------------------------------------------------
Key: CAY-987
URL: https://issues.apache.org/cayenne/browse/CAY-987
Project: Cayenne
Issue Type: Improvement
Components: Cayenne Core Library
Environment: N/A
Reporter: Scott Anderson
Assignee: Andrus Adamchik
Priority: Minor
I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [JIRA] Created: (CAY-987) Specifying PK when creating a new object in DB generated PK mode
Posted by Michael Gentry <bl...@gmail.com>.
Are you asking if you can specify/assign your own PKs? If so, the
answer is yes. You should expose the PK attribute in the ObjEntity in
CayenneModeler (this isn't done by default). Then when you generate
the code, it'll include a getter/setter for the PK. If you assign the
PK manually for a new object, it will not try to generate one.
/dev/mrg
On Feb 19, 2008 3:15 PM, Scott Anderson (JIRA) <de...@cayenne.apache.org> wrote:
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Andrus Adamchik
> Priority: Minor
>
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[JIRA] Reopened: (CAY-987) Specifying PK when creating a new object
in DB generated PK mode
Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik reopened CAY-987:
---------------------------------
Assignee: Andrus Adamchik (was: Ari Maniatis)
Here is a discussion thread that clarifies the issue - user provided PK is not taken into account when a "DB generated" PK strategy is used:
http://objectstyle.org/cayenne/lists/cayenne-user/2008/02/0071.html
I vaguely recall that there may have been some issues with DB-generated meaningful PK's (so this doesn't work for a reason). Anyways, we should investigate
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Andrus Adamchik
> Priority: Minor
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CAY-987) Specifying PK when creating a new object
in DB generated PK mode
Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-987.
-------------------------------
Resolution: Won't Fix
workaround is described here: http://objectstyle.org/cayenne/lists/cayenne-user/2008/05/0044.html
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Andrus Adamchik
> Priority: Minor
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[JIRA] Commented: (CAY-987) Specifying PK when creating a new
object in DB generated PK mode
Posted by "Scott Anderson (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743#action_12743 ]
Scott Anderson commented on CAY-987:
------------------------------------
The registration function appears to be broken; I get the initial email with instructions to reply to confirm, but replying has no effect.
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Ari Maniatis
> Priority: Minor
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[JIRA] Issue Comment Edited: (CAY-987) Specifying PK when creating
a new object in DB generated PK mode
Posted by "Scott Anderson (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743#action_12743 ]
scotta edited comment on CAY-987 at 2/19/08 2:54 PM:
-------------------------------------------------------------
[edit] nevermind
was (Author: scotta):
The registration function appears to be broken; I get the initial email with instructions to reply to confirm, but replying has no effect.
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Ari Maniatis
> Priority: Minor
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[JIRA] Closed: (CAY-987) Specifying PK when creating a new object
in DB generated PK mode
Posted by "Ari Maniatis (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ari Maniatis closed CAY-987.
----------------------------
Resolution: Incomplete
Assignee: Ari Maniatis (was: Andrus Adamchik)
Please use the cayenne user mailing list for support.
> Specifying PK when creating a new object in DB generated PK mode
> ----------------------------------------------------------------
>
> Key: CAY-987
> URL: https://issues.apache.org/cayenne/browse/CAY-987
> Project: Cayenne
> Issue Type: Improvement
> Components: Cayenne Core Library
> Environment: N/A
> Reporter: Scott Anderson
> Assignee: Ari Maniatis
> Priority: Minor
>
> I am working an a request ticket system, similar to the one I'm using to enter this issue. I need to import requests from the old schema to the new schema, and the PKs must be specified while doing an import. When using the tool normally, the PKs must be database generated. Is there any way to do this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.