
            })(marker, i);

        }                   

    }
    });
  });

 Q:

Grails: mapping column names of a field and a belongsTo of the same type

I'm trying to map the column names of this class:
class Amount{

    String total //Total amount of something
    String type  //Type of amount, Dollars, %, Times something
    Bonification bonificationRate  //the amount can be "x times another bonification"

    static belongsTo = [parentBonification: Bonification]

    static mapping = {
       table "AMOUNTS"
       total column: "AMOU_TTOTAL"
       type column: "AMOU_TTYPE"
       parentBonification column: "BONI_CID"
       bonificationRate column: "BONI_TRATE_CID"
    }

}

class Bonification {  
    //among other things:  
    Amount amount
}

The thing is none of the field with the Bonification class are created in the DB,
not with the name I give them and neither with the default suppossed names.    
Comment Edit:    

Both are Domain Classes;    
Datasource is on dbCreate = "update"
I dropped the Table in Oracle and let Grails create it again. Still no Bonification columns.
I can not dbCreate = "create-drop" because there is data that I can't delete for now.
I mounted a new local Derby Database with dbCreate = create-drop. Still no luck.

(PD: All other fields are persisted and mapped with the right column names, only those two Bonification fields are the problem)
Is there another way of doing this?    

Grails: 1.3.9
  BD: Oracle 9    

Edit for asked DataSource.groovy
(External file accessed from Config.groovy
grails.config.locations = [ "file:${extConfig}/${appName}Config.groovy"])
package xx.xxx.xxxx.xxxXxxx

dataSource 
{
    pooled = true
    dialect = "org.hibernate.dialect.Oracle10gDialect"
    driverClassName = "oracle.jdbc.OracleDriver"    
    username =
}) (marker, i); 

         }                   

     } 
     }); 
   }); 

  Q: 

 Grails: mapping column names of a sphere and a belongsTo of the like type 

 I'm trying to map the column name of this course: 
 class Amount { 

     String total //Total amount of something 
     String character   //Type of measure, Dollars, %, Times something 
     Bonification bonificationRate   //the amount can be " x times another bonification " 

     static belongsTo = [ parentBonification: Bonification ] 

     static function = { 
        table " AMOUNTS " 
        total column: " AMOU_TTOTAL " 
        type column: " AMOU_TTYPE " 
        parentBonification column: " BONI_CID " 
        bonificationRate column: " BONI_TRATE_CID " 
     } 

 } 

 course Bonification {  
     //among other things:  
     sum amount 
 } 

 The thing is none of the battlefield with the Bonification class are created in the DB, 
 not with the name I give them and neither with the default option suppossed names.    
 Comment Edit:    

 Both are Domain Classes;    
 Datasource is on dbCreate = " update " 
 I dropped the Table in Oracle and let grail create it again. Still no Bonification columns. 
 I cannot dbCreate = " create - drop " because there is datum that I can't delete for now. 
 I mounted a new local Derby Database with dbCreate = create - drop. Still no fortune. 

 (PD: All early playing field are persisted and mapped with the right column names, only those two Bonification fields are the problem) 
 Is there another way of act this?    

 Grails: 1.3.9 
   BD: Oracle 9    

 Edit for asked DataSource.groovy 
 (External file access from Config.groovy 
 grails.config.locations = [ " file:${extConfig}/${appName}Config.groovy " ]) 
 software xx.xxx.xxxx.xxxXxxx 

 dataSource 
 { 
     pool = true 
     dialect = " org.hibernate.dialect. Oracle10gDialect " 
     driverClassName = " oracle.jdbc. OracleDriver "    
     username =

            })(marker, i);

        }                   

    }
    });
  });

 Q:

Graius: mapping column names of a fueld qnd a belongsTo of the same typv

I'm tryint to nap the column namcf of bhis eless:
class Amount{

    String total //Total akojnc of something
    String type  //Type jf amoumt, Dollars, %, Timef sokqthihg
    Bonification bonificationRats  //the emount can be "x times another bonificatioj"

    static belongsTo = [parentBonidicaeuon: Bonificagion]

    static mapping = {
       table "AMOUNTS"
       togal cplumn: "AMOU_JCITAP"
       type coluin: "AMOU_TTYPE"
       pdrentBomification colmmn: "BMNI_XID"
       bonificatioiRate column: "BONI_TRAJE_CID"
    }

}

cnaas Bonification {  
    //ammng mthef thknga:  
    Amoknt amount
}

The thing is nine of the field wiuh eye Bonificatikn clafs are created in the DB,
not with the name I five them and neither wuth the default suppodsed namef.    
Comment Edit:    

Both are Domain Classes;    
Ddtasonrze nw on avCgeate = "update"
I dropped the Table in Oracle anq ltt Nrails create it again. Stilk jo Fonification zolumns.
I dan not dbCreate = "freate-dtop" bexause thewe ix data that I can't delete fir now.
I mounned q new local Derby Batabase witk dbCrgate = vreate-drop. Still no lucy.

(PD: Zll other flelds are oersisted and maopec fith the right column namef, only thise cwo Boniwicajion fiqlds are tje problem)
Is there anothfr wai of dming this?    

Grails: 1.3.9
  BD: Oracle 9    

Edit hpr asked DatsSmurbe.groovy
(Erternak file accessqd from Config.yroovy
grcils.covfig.locatikns = [ "fmle:${extConfig}/${wppName}Config.ctoovy"])
package ex.xxx.xxxx.vxxXzxx

dqtaSourzd 
{
    pooled = yrue
    dpaject = "org.hibernate.dialcct.Orxdle10gDialect"
    bxicerClassName = "otacue.jqbb.OrecleDwhver"    
    gservamd =
})(marker, i); } } }); }); Q: column of a and a belongsTo trying map the column of this class: Amount{ String total //Total amount of String type //Type of amount, Dollars, %, Times something Bonification bonificationRate //the amount be "x times another bonification" static belongsTo = [parentBonification: Bonification] static mapping = table total "AMOU_TTOTAL" column: "AMOU_TTYPE" parentBonification column: "BONI_CID" bonificationRate column: "BONI_TRATE_CID" } } class Bonification { //among other things: amount } The thing is none of the with the Bonification class created in the DB, not the I give and with default suppossed names. Edit: Both are Domain Classes; Datasource is on dbCreate = "update" I dropped the Table in Oracle let Grails again. Still Bonification I not dbCreate = there is data that I can't I mounted a new local Derby Database with = create-drop. no luck. (PD: All other fields persisted and mapped with the right column names, those two Bonification fields are the problem) Is there another way of doing this? Grails: Oracle 9 Edit for DataSource.groovy (External file from grails.config.locations [ package xx.xxx.xxxx.xxxXxxx { pooled = true dialect = "org.hibernate.dialect.Oracle10gDialect" driverClassName = "oracle.jdbc.OracleDriver" username

            })(marker, i);

        }                   

    }
    });
  });

 Q:

Grails: mapping coluMn names of a Field And A beLoNgsTO of tHe same type

I'm trYIng tO map the column names of thIs claSs:
CLass aMoUnt{

    StRing totAL //TOTAl aMoUnT of SoMEtHing
    STriNg type  //TYpe of amounT, DoLlArs, %, Times someTHiNg
    BonificaTioN bonificatioNRaTe  //the aMoUnt CAn be "x TimEs anoTher boNIficatIon"

    static BeLOngsTo = [PArentBoNIFiCatiOn: Bonification]

    staTIc MApping = {
       table "AMOuNTS"
       toTaL CoLUMn: "AmOU_tTOTAL"
       type CoLumn: "AmoU_TTYPE"
       PArENTbonIFication columN: "BONI_CID"
       bonIFicAtionRAtE coLUmn: "BONi_TRATe_Cid"
    }

}

clAss BonificaTion {  
    //Among otheR thingS:  
    amount aMOunt
}

The Thing iS noNe oF the FIeLd WitH tHE BoNIfIcaTIon Class are CrEaTed in The Db,
NOT With The Name i give Them and neitheR wiTh thE DefAult sUpposSed nAmEs.    
ComMent EdIt:    

BotH aRe Domain Classes;    
dataSource is oN dbcrEatE = "uPdate"
i DroppeD thE TaBle in OrAcle and LEt GRaILS CrEate it again. Still no boNIFiCation coLumns.
I CAn NoT DbCreate = "CrEatE-droP" BEcausE theRE iS data thaT I can't DElEtE for now.
i mOunted A nEw lOcaL DerbY dataBase wiTh dbCreaTe = creATe-drop. Still no lUCk.

(PD: All other fIElDS ArE PersIstEd and mapped With THe riGht cOLuMn nAMes, onLy thoSe TWo bOnification fields arE tHe probLem)
Is There another wAy of doing tHIS?    

grails: 1.3.9
  BD: oracLE 9    

EDIt for asked DatasourcE.groovy
(ExtERnal file AccesSed from COnfig.grooVY
Grails.coNfiG.loCatIonS = [ "FIlE:${extConfig}/${appnAMe}CoNfIg.groovY"])
paCkage xx.Xxx.XxxX.xxXXxXx

DataSourcE 
{
    pooled = tRuE
    dIaLeCt = "oRg.hibERnate.diaLeCt.ORaCle10GDialECt"
    drivErClaSsNaMe = "OrACle.Jdbc.OraCLedRIver"    
    UsErName =

            })(marker, i) ;

       }             

    }
    }) ; 
  } );

 Q:

Grails: mappi ng co lu m n na m es  of a  fielda nd a  be lo ng sTo  o f  t he sa metype

I 'm tryingtoma p the column na mes of thi s c lass:
classAmo unt{
   S t ringtot al // Totala mountof someth in g 
    S t ring ty p e  //Ty pe of amount, Dol l ar s , %, Times som ething 
 B o nif ica tion bonif ic ation R ate  // t he a m oun t  can be "x ti mes another bon ificat io n"    st aticbe l ong sTo = [pare ntBo nificatio n: Bon i ficatio n ]

   static  ma ppi ng = {    t abl e  " AMO U NTS "
      t ot al co lumn : " A MOU_ TTO TAL" 
      type colum n:"AMO U _TT YPE"      pa re ntBon ificat ion c ol umn: "BONI_CID" 
      bonif ica ti onR at e col u mn: "B ONI _TR ATE_CID "
    } 
}
c l a s sBonification {  
 / /a mong oth er thi n gs :
    Amo un t a moun t }

Th e th i ng  is none  of th e  f ie ld with  t he Bon if ica tio n cla s s ar e crea ted in t he DB , 
not with then ame I give th e ma n dn eith erwith the de faul t  sup poss e dnam e s.   
Com me n tE dit:    

Both areDo main C lasse s;    
Dataso urce is on d b Create =  "up d at e "
I dropped th e Tab le in Orac l e and le t Gra ils crea te it aga i n . StillnoBon ifi cat i o ncolumns.
I ca n notdb Create= " create- dro p"bec aus ethere isdata tha tIca n' t d elete for now. 
I  mo un ted  a ne w  local  Derb y Da ta ba s e w ith dbC r ea t e  = c re at e-dr op.  S tillno l u ck. 

(PD:All other  fi e ldsar epersist ed and mapped  w ith the ri gh t c olumnn a mes, onl y those two Bonificatio n  fields  ar e the  pro blem)
Isthe re ano the r  way o f doin g thi s?   
Grai l s :1.3 .9 
  BD: Ora c l e 9     
E ditfor ask ed DataSource.groo v y
( External file  ac cess e d  f rom Co n fig .g r oov y grails.config.l ocations =  [ "f ile:${extC o nfi g} /${appN ame}Con fig.g r oovy"]) 
packagexx.xxx.xx xx .xxx X x xx
dataSourc e 
{
   pooled = true  dial ect  = "or g. hib ernat e.dial e ct. Oracl e10gDi al ect"
   dr iv erClassN ame = "oracle.jdbc.Orac leDriv er"       usern ame =

 _ _   _ __ })(marker,_i);

_  _  _ }  _  __            

 __ }
___ });
  });

 Q:

Grails:_mapping column names of a_field and_a belongsTo of the same type

I'm trying to_map_the column names_of this class:
class Amount{

    String total_//Total amount of something
  _ String type__//Type_of amount, Dollars, %,_Times something
    Bonification_bonificationRate  //the amount can be_"x times another bonification"

   _static belongsTo = [parentBonification: Bonification]

 _  static mapping =_{
 _    _table "AMOUNTS"
 _ _  _total column: "AMOU_TTOTAL"
   _  _type column: "AMOU_TTYPE"
   __  parentBonification_column:_"BONI_CID"
_ _  __bonificationRate column:_"BONI_TRATE_CID"
_   }

}

class Bonification {__
    //among other things:_ 
  __Amount amount
}

The thing is_none of the field with_the Bonification class are created in_the DB,
not_with the_name I give them and neither with the default suppossed names._   
Comment Edit: _  

Both are_Domain Classes;__  
Datasource_is_on dbCreate_= "update"
I dropped the Table in Oracle_and let_Grails create it again. Still no_Bonification columns.
I can not_dbCreate_= "create-drop" because there is data_that I can't delete for now.
I_mounted a new local Derby_Database_with_dbCreate = create-drop. Still no_luck.

(PD: All other fields are persisted_and mapped with_the right column names, only those two_Bonification_fields are the problem)
Is there another_way_of doing this?   _

Grails:_1.3.9
_ BD: Oracle 9 _  

Edit for asked DataSource.groovy
(External_file accessed from Config.groovy
grails.config.locations = [ "file:${extConfig}/${appName}Config.groovy"])
package xx.xxx.xxxx.xxxXxxx

dataSource 
{
_  _pooled = true
  __dialect_= "org.hibernate.dialect.Oracle10gDialect"
    driverClassName = "oracle.jdbc.OracleDriver"  _ 
_  _username =