 name="InvoiceNumber" />
        <!-- If inverse="true", InvoiceId is NOT set to NULL and the record remains -->
<bag name="LineItemList" table="lineitems" inverse="false"  cascade="all-delete-orphan">
  <key column="InvoiceId"/>
  <one-to-many 
    class="LineItem"/>
</bag>    

Child Objects (LineItems):

<many-to-one lazy="false" name="Parent" column="InvoiceID" not-null="false"
             class="Invoice,Company.Business"
             />

<property name="LineItemNumber" />
<property name="SalesAmount"/>

The Web Service persistence code looks like this:
[WebMethod]

public Invoice PutInvoice(Invoice invoice)
{
    // Necessary to rebuild parent references, see Blog
foreach (LineItem item in invoice.LineItems)
{
    item.Parent = invoice;
}

using (PersistenceManager pm = new PersistenceManager())
{
    pm.Save<Invoice>(invoice);
}

return invoice; // Return version potentially modified with DB-assigned ID

}

A:

You are right this has to to with the detached state of your objects and is a known limitation in admission to performance which NHibernate describes as the not implemented feature of 'persistence of reachability'. However you could of course easily delete all LineItems without valid invoice reference but i also don't like this solution. 
Usually i use client objects to achieve statelessness which of course results in loading the invoice before manipulating. 

 Q:

while importing Maven project adding.iml files to SVN source control

Hi I am relatively new to Maven and intelliJ IDEA.
While trying to import the Maven project, IDE is asking for adding *.iml files to SVN control.
I wanted to know what does it mean? and what are the merits and demerits of doing so?

A:

The iml files are used by intellij to store module specific settings and other information relating to the module. Usually teams do not add *.iml files to svn. Typically these files change rapidly, and for no important reason, meaning that if you perform something as simple as a search
name="InvoiceNumber " / > 
         <! -- If inverse="true ", InvoiceId is NOT set to NULL and the record remains -- > 
 < bag name="LineItemList " table="lineitems " inverse="false "   cascade="all - delete - orphan " > 
   < cardinal column="InvoiceId"/ > 
   < one - to - many 
     class="LineItem"/ > 
 < /bag >    

 Child Objects (LineItems ): 

 < many - to - one lazy="false " name="Parent " column="InvoiceID " not - null="false " 
              class="Invoice, ship's company. Business " 
              / > 

 < property name="LineItemNumber " / > 
 < place name="SalesAmount"/ > 

 The Web Service persistence code expect like this: 
 [ WebMethod ] 

 public Invoice PutInvoice(Invoice invoice) 
 { 
     // Necessary to rebuild parent references, watch Blog 
 foreach (LineItem item in invoice. LineItems) 
 { 
     detail. Parent = invoice; 
 } 

 using (PersistenceManager pm = modern PersistenceManager ()) 
 { 
     pm. Save < Invoice>(invoice); 
 } 

 return bill; // Return version potentially modified with DB - assigned ID 

 } 

 A: 

 You are right this accept to to with the detached state of your object and is a known limitation in admission to performance which NHibernate describes as the not implement feature of' persistence of reachability'. However you could of course easily delete all LineItems without valid invoice citation but i also don't like this solution. 
 Usually i use client object to achieve statelessness which of class results in loading the invoice before manipulating. 

  Q: 

 while importing Maven project adding.iml files to SVN source control condition 

 Hi I am relatively new to Maven and intelliJ IDEA. 
 While trying to spell the Maven undertaking, IDE is asking for adding * .iml files to SVN control. 
 I want to acknowledge what does it mean? and what are the merits and demerit of doing so? 

 A: 

 The iml files are used by intellij to store module specific settings and early information relating to the module. Usually teams do not add * .iml files to svn. Typically these file change rapidly, and for no important reason, meaning that if you do something as simple as a search
 nale="InvoiceNumber" />
        <!-- If inverse="true", InvoicxId is HOT set go NULL and the record remaiis -->
<bqg nane="LineItemList" table="liveitems" ijverse="faose"  xascade="all-vslete-orikan">
  <icy connmn="InvoiceId"/>
  <oke-to-many 
    class="LineItek"/>
</bxg>    

Child Objects (LineItems):

<many-to-onq lazy="fslde" name="Parent" solukg="InvkpctID" not-null="false"
             clasa="Invoict,Company.Business"
             />

<property name="LijeItfmNumber" />
<property jame="SalesAmiunt"/>

Eye Web Servize persisttnee code loois like this:
[WebMethod]

public Invuice 'utInvoice(Ibviicf invoice)
{
    // Necvssary to rebmpld parant refrrences, see Blpg
fmreqch (LineItem item in mnvoice.LineItems)
{
    ytem.Parend = invoice;
}

using (PerwiwtencgManacer on = vew PxrsjstencfMaiager())
{
    pm.Aave<Invoice>(unvoice);
}

return invoive; // Return versikn potqneially modified with DB-assigned ID

}

A:

You dre right this has to to wuth the detached statg of your jbjects and is a known limitation in admission to perfkfmaugc whkxh NHibernate describes as the not implemented ssauurv of 'persistence jf reachabikihy'. Rowever you cuuld oy ckurse easily deletf all LyneItwms withott vslid invoice reference but u also don't juke this solution. 
Bsually i usz cliemt obkects to achieve statelzssnesa which of fourse reajlts in loading ghe itvoice btwore manipulating. 

 Q:

while mmporcing Mavdn ptoject wdding.iml viles to SVN source contgol

Hi I am relatigely new to Maven and intelliJ MVEA.
While tryimg to import che Mayen project, IDE is asking for adding *.iml wiles to SNN contron.
I wanted tj know what dmgs it mean? anv what arq thw meeits ana demerits of dping so?

A:

Tkt iml filew are used by inteklig to store modulz wpecific settinbs xnd onhec infjsmation relading to yhe mudule. Usualoh tesms do not add *.iml fhles to svn. Typically yhcse files change wapidly, and fpr no important rewson, keaiing tnat if you perform something as sjmple as w scarch
name="InvoiceNumber" /> <!-- If inverse="true", InvoiceId is to and the remains --> <bag column="InvoiceId"/> class="LineItem"/> </bag> Child (LineItems): <many-to-one lazy="false" column="InvoiceID" not-null="false" class="Invoice,Company.Business" /> <property name="LineItemNumber" <property name="SalesAmount"/> The Web Service persistence code looks like this: [WebMethod] public Invoice invoice) { // Necessary to rebuild parent references, see Blog foreach (LineItem item invoice.LineItems) item.Parent invoice; using (PersistenceManager pm = new PersistenceManager()) { pm.Save<Invoice>(invoice); } return invoice; // Return version potentially modified DB-assigned ID } A: You are right this to to with the state of your objects and a limitation in to which describes as the implemented feature of 'persistence of reachability'. However you could of course easily delete all LineItems without valid reference but don't like solution. i client objects to which of course results in loading manipulating. Q: while importing Maven project adding.iml files SVN source Hi I am relatively new to and intelliJ IDEA. While trying to import the project, IDE is asking for adding *.iml files to SVN control. I wanted to know it mean? and what the merits and of so? The files are by intellij to store module specific settings and other information relating the module. Usually teams do not add *.iml files to these change rapidly, and no important reason, meaning if perform something as simple search
 name="InvoiceNumber" />
        <!-- If inversE="true", InvoiCeId iS NOt seT tO NULl and The record remaiNS -->
<bag Name="LineItemList" table="lIneitEmS" InveRSe="False"  Cascade="ALl-DELetE-oRpHan">
  <KeY CoLumn="INvoIceId"/>
  <onE-to-many 
    claSs="LInEItem"/>
</bag>    

ChilD obJects (LineITemS):

<many-to-one laZy="fAlse" naMe="parENt" colUmn="invoiCeID" noT-Null="faLse"
             class="INvOIce,ComPAny.BusiNESs"
             />

<PropErty name="LineItemNUMbER" />
<property name="SAlesAmOuNT"/>

THE web serVice persisTeNce coDE looks lIKe THIS:
[WeBmethod]

public INvoice PutInVOicE(InvoiCe InvOIce)
{
    // NecEssarY tO RebUild parent rEferEnces, see BLog
forEAch (LineiTem item In invoIce.linEIteMS)
{
    iTeM.PaReNT = inVOiCe;
}

uSIng (persisteNcEMAnageR pm = nEW pERsisTenCeMaNager())
{
    Pm.Save<Invoice>(InvOice);
}

REtuRn invOice; // REturN vErsioN potenTiallY mOdified with DB-asSignEd ID

}

A:

You aRe rIgHt tHiS has tO To with The DetAched stAte of yoUR obJeCTS AnD is a known limitatioN iN ADmIssion to PerforMAnCe WHich NHibErNatE desCRIbes aS the NOt ImplemenTed feaTUrE oF 'persisTeNce of rEaChaBilIty'. HoWEver You couLd of courSe easILy delete all LinEitems without vALiD INvOIce rEfeRence but i alSo doN'T likE thiS SoLutIOn. 
UsuAlly i UsE ClIEnt objects to achieve StAtelesSness Which of course Results in lOADIng the inVoicE BeFOre manipulatinG. 

 Q:

whiLe importinG maven proJect aDding.iml Files to SVn SOurce conTroL

Hi i am RelATIvEly new to Maven AND intElLiJ IDEA.
whiLe tryinG to ImpOrt The maVen projecT, IDE is asKiNg FoR aDdiNg *.iml FIles to SVn cOntRoL.
I wAnted TO know wHat doEs it MeAn? ANd wHat are tHE mERIts aNd DeMeriTs oF dOing sO?

A:

ThE Iml Files arE used by inTelLIj to StOrE module Specific settiNgS and other iNfOrmAtion rELAting to tHe module. Usually teams do nOT add *.iml FilEs to sVn. TyPically thEse Files cHanGE rapidLy, and fOr no iMpOrtANT reasON, MeAniNg That if you pERForM someThIng aS simple As a search
 name="InvoiceNumber" />
       <!- - Ifinv ers e= "tru e",InvoiceId is N O T se t to NULL and the reco rd re ma i ns - - ><bagname="L i ne I t emL is t"  ta bl e =" linei tem s" inve rse="false " ca scade="all-d e le te-orphan" >
 <key column ="I nvoice Id "/>   <on e-t o-man y 
  class= "LineItem "/ > 
</bag >     

C h i ld  Obj ects (LineItems): 
< m any-to-one laz y="fal se "  n a m e=" Par ent" colum n= "Invo i ceID" n o t- n u l l=" f alse"
            class = "In voice, Co mpa n y.Busi ness" 
          />
<pr operty na me="Li n eItemNu m ber" /> 
<prop ert y n ame= " Sa le sAm ou n t"/ > 
The Web  Service  p er siste ncec o d e  loo kslike  this :
[WebMethod] 

p ubli c  In voice  PutI nvoi ce (Invo ice in voice ){
    // Necess aryto rebuil d p ar ent  r efere n ces, s eeBlo g
forea ch (Lin e Ite mi t e min invoice.LineIte ms ) {    item .Paren t  =  i n voice;
} 
usi ng ( P e rsist ence M an ager pm= newP er si stenceM an ager() ){
  pm.Sa v e<In voice> (invoice );
}return invoice ;  // Return ve r si o n  p o tent ial ly modified  wit h  DB- assi g ne d I D 

}
A:

Y ou ar e  right this has toto  withthe d etached state  of your o b j e cts andis a kn o wn limitationin ad mission to performa nce w hich NHi bernate d e s cribes a s t henot  im p l em ented feature o f 'p er sistenc e o f reach abi lit y'.  Ho we ver you c ould ofco ur se  e asi ly de l ete allLi neI te mswitho u t vali d inv oice  r ef e ren ce buti  a l s o do n' tlike  th is  solu tion .  
U suallyi use cli ent obje ct sto achi eve stateless ne ss which o fcou rse re s u lts in l oading the invoice befo r e manip ula ting.  

Q:

while  im portin g M a ven pr ojectaddin g. iml f ilest o  S VNso urce contr o l 

H i I a mrela tivelynew to Maven and i n tel liJ IDEA.
Whi letryi n g  t o i m po r t t he Mav e n  project, IDE i s asking f or ad ding *.iml fil es  to SVN  contro l.
Iw anted t o know wh at does i tmean ? and  what arethe meri ts and de m erits of  doin g s o?

A: 
The  imlfilesa reusedby int el lij to  stor emodule s pecific settings and ot her in forma tio n relatin g t o  th e module.  Usu ally teams  do  no t add  *. i ml fi lest osvn .  Typi call y  these fi l es  ch a n ge  rapidly, a n d for  no i mpo r tant r easo n, meaning that i f  you perform s omet h i ngass impl eas a search
 name="InvoiceNumber"_/>
 _   _ _<!--_If inverse="true",_InvoiceId_is NOT set_to NULL and_the record remains -->
<bag_name="LineItemList" table="lineitems" inverse="false"__cascade="all-delete-orphan">
  <key column="InvoiceId"/>
  <one-to-many 
    class="LineItem"/>
</bag>   _

Child_Objects (LineItems):

<many-to-one_lazy="false"_name="Parent"_column="InvoiceID" not-null="false"
   _    _ _  class="Invoice,Company.Business"
     __  _   />

<property name="LineItemNumber" />
<property name="SalesAmount"/>

The Web Service_persistence code looks like this:
[WebMethod]

public Invoice_PutInvoice(Invoice invoice)
{
 ___// Necessary to rebuild_parent references, see Blog
foreach (LineItem item_in invoice.LineItems)
{
    item.Parent_= invoice;
}

using (PersistenceManager pm = new PersistenceManager())
{
_   pm.Save<Invoice>(invoice);
}

return invoice; //_Return version potentially modified with_DB-assigned ID

}

A:

You_are right this has to_to with the_detached state_of your objects_and is a known limitation in_admission to performance_which NHibernate describes as the not_implemented_feature of 'persistence_of_reachability'._However you_could of course_easily_delete all_LineItems_without valid invoice reference but i_also_don't like this solution. 
Usually i use_client objects to achieve_statelessness_which of course results_in loading the invoice before_manipulating. 

 Q:

while importing Maven project_adding.iml files_to SVN_source control

Hi I am relatively new to Maven and intelliJ IDEA.
While_trying to import the Maven project,_IDE is asking for_adding *.iml_files_to SVN control.
I_wanted_to know_what does it mean? and what are_the merits_and demerits of doing so?

A:

The iml_files are used by_intellij_to store module specific settings and_other information relating to the module._Usually teams do not add_*.iml_files_to svn. Typically these files_change rapidly, and for no important_reason, meaning that_if you perform something as simple as_a_search