You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org> on 2008/01/23 12:52:32 UTC

[JIRA] Commented: (CAY-977) SybasePkGenerator.longPkFromDatabase() throws exception

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

Øyvind Harboe commented on CAY-977:
-----------------------------------

ah. If the auto_pk_support table is missing an entry, then this is the resulting Exception. 

Hmmm... some alterantives

- could the missing entry in auto_pk_support be created automatically at this point?
- improve exception text?
- do nothing close as "not a bug".

> SybasePkGenerator.longPkFromDatabase() throws exception
> -------------------------------------------------------
>
>                 Key: CAY-977
>                 URL: https://issues.apache.org/cayenne/browse/CAY-977
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>
> It throws this exception when I try to use "Default" PK Generation Strategy. The PK is not database generated(identity) when I check MS SQL manager.
>                                throw new CayenneRuntimeException(
>                                         "Error generating pk for DbEntity "
>                                                 + entity.getName());

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