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
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to