Ok, ok, i got it.... but my question, if theres an way to "automatic" generate schema, whatever it is by rows, or columns.
--- Vision without action is a waking dream. Action without vision is a nightmare. On Mon, Nov 9, 2009 at 8:43 AM, zihotki <[email protected]> wrote: > > Agree with Gustavo. There are no column locks in databases. Only > table, database and row locks as far as I remember. It's better here > to use rows. > > On Nov 7, 6:27 pm, Gustavo Ringel <[email protected]> wrote: > > I any case if you use multiple columns every time you are going to get an > id > > you block every other id request...so it is better to use multiple rows. > > > > Gustavo. > > > > On Sat, Nov 7, 2009 at 4:28 PM, Fernando Zago <[email protected]> wrote: > > > Fabio, > > > > > can SchemaExport be updated to support out something like this ? > > > > > --- > > > Vision without action is a waking dream. > > > Action without vision is a nightmare. > > > > > On Sat, Nov 7, 2009 at 12:27 PM, Fabio Maulo <[email protected]> > wrote: > > > > >> sure... by hand. > > > > >> 2009/11/7 Fernando Zago <[email protected]> > > > > >>> multiple-columns is not supported! > > > > >>> but, > > >>> when i created the table by hand, it works fine. > > > > >>> this mappings > > > > >>> <id name="ID" column="[ID]" type="Int64"> > > >>> <generator class="hilo"> > > >>> <param name="table">[Client_Generator]</param> > > >>> <param name="column">[SiteLog_NextHi]</param> > > >>> </generator> > > >>> </id> > > > > >>> <id name="ID" column="[ID]" type="Int64"> > > >>> <generator class="hilo"> > > >>> <param name="table">[Client_Generator]</param> > > >>> <param name="column">[AdministrationLog_NextHi]</param> > > >>> </generator> > > >>> </id> > > > > >>> works fine when i got the table > > > > >>> Create table Client_Generator > > >>> ( > > >>> SiteLog_NextHi BIGINT, > > >>> AdministrationLog_NextHi BIGINT > > >>> ) > > > > >>> --- > > >>> Vision without action is a waking dream. > > >>> Action without vision is a nightmare. > > > > >>> On Sat, Nov 7, 2009 at 12:14 PM, Fernando Zago <[email protected]> > wrote: > > > > >>>> Hm, and, how do i use multiple-rows ? > > > > >>>> can you give me an example ? > > > > >>>> --- > > >>>> Vision without action is a waking dream. > > >>>> Action without vision is a nightmare. > > > > >>>> On Sat, Nov 7, 2009 at 10:57 AM, Fabio Maulo <[email protected] > >wrote: > > > > >>>>> nothing al is as expected. > > >>>>> what you want do is not supported. > > >>>>> You can use multple-rows not multiple-columns. > > > > >>>>> 2009/11/7 Fernando Zago <[email protected]> > > > > >>>>> Hi all, > > > > >>>>>> I'm having a problem using SchemaExport().Create(), > > >>>>>> i have using this to create my domain model a long time, > > > > >>>>>> and now, i have a situation that SchemaExport can't create > > >>>>>> a different columns to same table of an HiLo Generator. > > > > >>>>>> I have two HiLo generators using the same table: > > > > >>>>>> <id name="ID" column="[ID]" type="Int64"> > > >>>>>> <generator class="hilo"> > > >>>>>> <param name="table">[Client_Generator]</param> > > >>>>>> <param name="column">[SiteLog_NextHi]</param> > > >>>>>> </generator> > > >>>>>> </id> > > > > >>>>>> <id name="ID" column="[ID]" type="Int64"> > > >>>>>> <generator class="hilo"> > > >>>>>> <param name="table">[Client_Generator]</param> > > >>>>>> <param name="column">[AdministrationLog_NextHi]</param> > > >>>>>> </generator> > > >>>>>> </id> > > > > >>>>>> but nHibernate just creates a "SiteLog_NextHi" column ? > > >>>>>> Whats going wrong ? > > > > >>>>>> --- > > >>>>>> Vision without action is a waking dream. > > >>>>>> Action without vision is a nightmare. > > > > >>>>> -- > > >>>>> Fabio Maulo > > > > >> -- > > >> Fabio Maulo > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
