FAQ
I know it problem with embedded. I will fix it in the short time

2009/12/10 Michael Gentry (JIRA) <jira@apache.org>
[
https://issues.apache.org/jira/browse/CAY-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788748#action_12788748]

Michael Gentry commented on CAY-1332:
-------------------------------------

Adding to Andrey's comment:

I just looked at my XML and saw:

<embedded-attribute name="myType" type="foo.bar.enums.MyType"/>

When it should look more like a normal attribute, such as:

<obj-attribute name="contractNumber" type="java.lang.String" lock="true"
db-attribute-path="CONTRACT_NUMBER"/>

You'll notice the custom type not only got changed to an
embedded-attribute, but even though I defined the DB attributes after the
modeler blanked them out (see CAY-1333), it didn't save them. It now seems
to me this bug is also related to 1333.

This is more of a blocker than I originally thought and I'll raise the
priority.

Embeddable validation error in CM on custom Java types
------------------------------------------------------

Key: CAY-1332
URL: https://issues.apache.org/jira/browse/CAY-1332
Project: Cayenne
Issue Type: Bug
Components: CayenneModeler GUI
Affects Versions: 3.0 beta 1
Environment: All
Reporter: Michael Gentry
Assignee: Olga Tkacheva
Priority: Minor
Fix For: 3.0 beta 2


Using Cayenne Modeler 3.0B1, I edited an ObjEntity's Java Type to be a
custom enum (say, foo.bar.enums.MyType). When I save the project, I
get an incorrect validation warning:
Warning: EmbeddedAttribute has incorrect Embeddable.
CM used to not work this way (never gave a warning for this) because
custom Java Types are supported.
You can still save the project, but the incorrect and misleading
validation warning could confuse people.

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

--
Olga Tkacheva

Search Discussions

  • Ольга Ткачева at Dec 10, 2009 at 3:57 pm
    Oh, sorry - with embeddable

    2009/12/10 Ольга Ткачева <tkachovaolga@gmail.com>
    I know it problem with embedded. I will fix it in the short time

    2009/12/10 Michael Gentry (JIRA) <jira@apache.org>

    [
    https://issues.apache.org/jira/browse/CAY-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788748#action_12788748]

    Michael Gentry commented on CAY-1332:
    -------------------------------------

    Adding to Andrey's comment:

    I just looked at my XML and saw:

    <embedded-attribute name="myType" type="foo.bar.enums.MyType"/>

    When it should look more like a normal attribute, such as:

    <obj-attribute name="contractNumber" type="java.lang.String" lock="true"
    db-attribute-path="CONTRACT_NUMBER"/>

    You'll notice the custom type not only got changed to an
    embedded-attribute, but even though I defined the DB attributes after the
    modeler blanked them out (see CAY-1333), it didn't save them. It now seems
    to me this bug is also related to 1333.

    This is more of a blocker than I originally thought and I'll raise the
    priority.

    Embeddable validation error in CM on custom Java types
    ------------------------------------------------------

    Key: CAY-1332
    URL: https://issues.apache.org/jira/browse/CAY-1332
    Project: Cayenne
    Issue Type: Bug
    Components: CayenneModeler GUI
    Affects Versions: 3.0 beta 1
    Environment: All
    Reporter: Michael Gentry
    Assignee: Olga Tkacheva
    Priority: Minor
    Fix For: 3.0 beta 2


    Using Cayenne Modeler 3.0B1, I edited an ObjEntity's Java Type to be a
    custom enum (say, foo.bar.enums.MyType). When I save the project, I
    get an incorrect validation warning:
    Warning: EmbeddedAttribute has incorrect Embeddable.
    CM used to not work this way (never gave a warning for this) because
    custom Java Types are supported.
    You can still save the project, but the incorrect and misleading
    validation warning could confuse people.

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

    --
    Olga Tkacheva


    --
    Olga Tkacheva
  • Michael Gentry at Dec 10, 2009 at 5:12 pm
    Thanks for looking into this, Olga! I haven't really had time since I
    discovered it.

    mrg


    2009/12/10 Ольга Ткачева <tkachovaolga@gmail.com>:
    I know it problem with embedded. I will fix it in the short time

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedDec 10, '09 at 3:56p
activeDec 10, '09 at 5:12p
posts3
users2
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase