Missing DbAttribute

From: cay dabbler (xsd..uvip.com)
Date: Thu Jul 27 2006 - 04:04:52 EDT

  • Next message: Tore Halset: "LRUMap.reuseMapping exception with 1.2B3"

    1. I have two classes Foo1 and Foo2;
    2. Foo1 is a super class of Foo2

    Under Foo2 -> Attribute, the DbAttribute is blank for all the Foo2 own
    attributes.

    Yes, I have done some edited and it was ok until I reopen the cayenne.xml
    file. I am writting my own singleclass.vm template, and the absence of Foo2
    DbAttributes mean that I cannot access the dbAttribute methods such as
    MaxLength(), Name() etc. to do the following:

    @javax.persistence.Column(name = "${dbAttr.Name}",
    length="${dbAttr.MaxLength}" #if($dbAttr.isMandatory()), nullable = false
    #else , nullable = true #end)
        public ${attr.Type} get${stringUtils.capitalized($attr.Name)}() {
            return this.${attr.Name};
        }

    I suppose, this is not what cayenne is meant for, but eh, that's what
    invention is all about.

    What must I do to force a display of all Foo2 DbAtttibutes ?

    -- 
    View this message in context: http://www.nabble.com/Missing-DbAttribute-tf2008259.html#a5516956
    Sent from the Cayenne - User forum at Nabble.com.
    



    This archive was generated by hypermail 2.0.0 : Thu Jul 27 2006 - 04:05:17 EDT