Re: Setting Default Values for Entities

From: Adam Yocum (adamyocu..ahoo.com)
Date: Sat Dec 22 2007 - 18:12:58 EST

  • Next message: Adam Yocum: "Re: Setting Default Values for Entities"

    Hi Ari,
       
      It looks like I can get close with ...
       
      http://cayenne.apache.org/doc/api/org/apache/cayenne/map/DbAttribute.html#getType()
       
      That returns the SQL type that of the DbAttribute, if only I could get the Default Value set in the database.
       
      I need something like DbAttribute.getDefaultValue();
       
      suggestions?
       
      Thanks,
      Adam

    Aristedes Maniatis <ar..sh.com.au> wrote:
      
    On 23/12/2007, at 5:30 AM, Adam Yocum wrote:

    > 'SHOW columns FROM tablename'

    This might be a good starting point:

    http://cayenne.apache.org/doc/api/org/apache/cayenne/map/ObjEntity.html#getAttributes()

    Ari Maniatis

    -------------------------->
    ish
    http://www.ish.com.au
    Level 1, 30 Wilson Street Newtown 2042 Australia
    phone +61 2 9550 5001 fax +61 2 9550 4001
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A

           
    ---------------------------------
    Looking for last minute shopping deals? Find them fast with Yahoo! Search.



    This archive was generated by hypermail 2.0.0 : Sat Dec 22 2007 - 18:13:34 EST