In Oracle it's preferred that we use Sequences. Which would be
equivalent to Identity. Are you suggesting I use something like
increment instead?
As for the config... something like this?
On Oct 8, 4:39 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
2008/10/8 Fabio Maulo <[EMAIL PROTECTED]>
> RDBMS (if native mean identity) + delete-orphan + inverse
>
don't use "identity"
remove "delete-orphan"
ignore "inverse" (sorry I don't saw you are not using it in "Player")
--
Fabio Maulo
--~--~-~--~~~---~--~~
You rec
RDBMS (if native mean identity) + delete-orphan + inverse
2008/10/8 Shane C <[EMAIL PROTECTED]>
>
>
>
>
>
> access="field.camelcase-underscore"
> lazy="true"
> cascade="all-delete-orphan">
>
>
>
>
>
>
>
>
>
>
>
>
>
Thanks, that was it. Unfortunately it has the default NONE... hm...
On Oct 9, 1:18 am, Roger Kratz <[EMAIL PROTECTED]> wrote:
> Look at "cascade" in the docs.
>
>
> Från: nhusers@googlegroups.com [EMAIL PROTECTED] för ursuletzu [EMAIL
> PROTECTED]
> Skick
I'm working on SQL 2005 right now.. goal is to make it work on Oracle
after. Here is my mapping file.. it results in an AssertionFailure:
no collection snapshot for orphan delete
On Oct 8, 4:22 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> RDBMS
Thanks, that was it. Unfortunately it has the default NONE... hm...
On Oct 9, 1:17 am, Shane C <[EMAIL PROTECTED]> wrote:
> What do you mean by if you insert?
>
> Initial thought would be you don't have cascading configured but your
> mapping files would help with that.
>
> On Oct 8, 4:15 pm, urs
On Oct 8, 3:58 pm, Shane C <[EMAIL PROTECTED]> wrote:
> I'm a big fan of keeping things simple. With that in mind I like to
> have my relationships single directional. To pull an example out of
> the air..
>
> Game Table
>
Ok, remember that if you want share it we are happy.
2008/10/8 srf <[EMAIL PROTECTED]>
>
> Its not that they dont need it , its just that the performance
> implications of the reflection calls that the proxy wrapper does makes
> it a show stopper. What Im going to do is try and implement our own
Ankush I would suggest you to use refer to genwise for this.
Do call me on my desk and I would share a presentation on this.
Thanks
Prabhat
On Sep 26, 8:07 am, Ankush Gmail <[EMAIL PROTECTED]> wrote:
> Hey Guys
>
> I am just working around for some help related toNHibernatewithASP.Net
>
> We are
Its not that they dont need it , its just that the performance
implications of the reflection calls that the proxy wrapper does makes
it a show stopper. What Im going to do is try and implement our own
lazy loading using our own custom collection type and that should make
sure that we dont return
Look at "cascade" in the docs.
Från: nhusers@googlegroups.com [EMAIL PROTECTED] för ursuletzu [EMAIL
PROTECTED]
Skickat: den 9 oktober 2008 00:15
Till: nhusers
Ämne: [nhusers] TransientObjectException?
Hi, I am new to NHibernate and i encountered this ex
What do you mean by if you insert?
Initial thought would be you don't have cascading configured but your
mapping files would help with that.
On Oct 8, 4:15 pm, ursuletzu <[EMAIL PROTECTED]> wrote:
> Hi, I am new to NHibernate and i encountered this exception with
> consternation.
> Why is NHiber
Hi, I am new to NHibernate and i encountered this exception with
consternation.
Why is NHibernate not able to save my full object graph?
var partner = new Partner();
partner.PartnerName = "a";
var address1 = new A
2008/10/8 Shane C <[EMAIL PROTECTED]>
> Is there a way to do this with single directional relationships or does
> NH expect your relationships to be bidirectional?
>
It depend on what your a saying to NH trough your mappings.
--
Fabio Maulo
--~--~-~--~~~---~--~~
I'm a big fan of keeping things simple. With that in mind I like to
have my relationships single directional. To pull an example out of
the air..
Game Table
-
GameId
Player Table
--
PlayerId
GameId
Name
When I add a Player to Game and save NHibernate first sav
Before do it ask yourself why so many developer don't need it.
2008/10/8 srf <[EMAIL PROTECTED]>
>
> ya, I was going to go down the IUserCOllectiontype route but was
> hoping there was some simple switch that would do that.
>
> thanks
>
> scott
>
> On Oct 7, 8:47 am, "Fabio Maulo" <[EMAIL PROTECT
2008/10/8 MAMMON <[EMAIL PROTECTED]>
>
> What is the difference between mapping to private member variables
> versus mapping to properties?
As you ask yesterday, you can have businesslogic in your property but using
field NH don't take care about it.
If you want NH take care only when you need t
ya, I was going to go down the IUserCOllectiontype route but was
hoping there was some simple switch that would do that.
thanks
scott
On Oct 7, 8:47 am, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> lazy="false" + IUserCollectionType
>
> 2008/10/7 srf <[EMAIL PROTECTED]>
>
>
>
>
>
> > I could also
ok... ok
Available buildin accessors:
property
field
field.camelcase
field.camelcase-underscore
field.lowercase
field.lowercase-underscore
field.pascalcase-underscore
field.pascalcase-m-underscore
field.pascalcase-m
nosetter.camelcase
nosetter.camelcase-underscore
nosetter.lowercase
nosetter.l
http://www.nhforge.org/doc/nh/en/index.html
5.1.9. property
wrote:
> 2008/10/8 MAMMON <[EMAIL PROTECTED]>
>>
>> One other question -- let's say I want some property in my data access
>> layer to be read-only for consumers of the DAL. Do I need to have
>> setters on my properties for NH to work
2008/10/8 MAMMON <[EMAIL PROTECTED]>
>
> One other question -- let's say I want some property in my data access
> layer to be read-only for consumers of the DAL. Do I need to have
> setters on my properties for NH to work correctly with lazy loading
> and proxies, etc? If so, I guess I can just
Try it and take a look to the exception at BuildSessionFactory.
2008/10/8 MAMMON <[EMAIL PROTECTED]>
>
> public class Person
> {
>private string _name;
>
>public void DoSomethingWithName()
>{
>Console.WriteLine(_name); // Will this work? Or do I need to
> use Name, to ensure
What is the difference between mapping to private member variables
versus mapping to properties? What would the advantages and
disadvantages be of both cases?
On Oct 8, 1:59 pm, "Will Shaver" <[EMAIL PROTECTED]> wrote:
> Hopefully someone else will correct me if I'm wrong here:
>
> #0 - This cou
Hopefully someone else will correct me if I'm wrong here:
#0 - This could be easily confirmed with some unit tests
#1 - This depends on your mapping. If you are using private member
vars, then map to your vars. If you map to the property, reference the
property and don't use member vars.
#3. You
I've done some research on this and had some follow up questions.
1. this only works for properties, not many-to-one, correct?
2. How does this effect generating db foreign keys (schema export, at
least for testing)?
3. How is criteria/hql affected by an IUserType instead of a many-to-
one?
On Oc
One other question -- let's say I want some property in my data access
layer to be read-only for consumers of the DAL. Do I need to have
setters on my properties for NH to work correctly with lazy loading
and proxies, etc? If so, I guess I can just make the setters
protected.
On Oct 8, 1:51 pm,
public class Person
{
private string _name;
public void DoSomethingWithName()
{
Console.WriteLine(_name); // Will this work? Or do I need to
use Name, to ensure lazy loading?
}
public string Name
{
get { return _name; }
set { _name = value; }
You can supply your own proxies by implementing an IProxyFactory. You
configure NH to use your proxy factory by implementing an
IProxyFactoryFactory and adding some configuration like:
MyProxyFactoryFactory,
MyAssembly
As indicated, NHibernate ProxyGenerators uses this feature to generate
proxie
2008/10/8 Tuna Toksöz <[EMAIL PROTECTED]>
> You deserve a lot for your effort.
>
Is one of my pleasure
--
Fabio Maulo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send ema
Which is in contrib.
On Wed, Oct 8, 2008 at 9:45 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
> NHibernate.ProxyGenerators is an example
>
> 2008/10/8 Berke <[EMAIL PROTECTED]>
>
>>
>> Ayende made a comment in a recent post about proxies being pluggable
>> and we can define our own. Could someone p
You deserve a lot for your effort.
On Wed, Oct 8, 2008 at 8:12 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
> Gift of tech-Books and/or dev-tools are enough for the work in NH (for my
> personal usage).
> When the first request it is not possible documentation, wikis and
> blog-posts for the commun
NHibernate.ProxyGenerators is an example
2008/10/8 Berke <[EMAIL PROTECTED]>
>
> Ayende made a comment in a recent post about proxies being pluggable
> and we can define our own. Could someone point me in a direction as to
> how to achieve this.
>
> I'd love to modify the proxies so that if the s
Ayende made a comment in a recent post about proxies being pluggable
and we can define our own. Could someone point me in a direction as to
how to achieve this.
I'd love to modify the proxies so that if the session is gone, it
would try and get it from, SessionFactory.GetCurrentSession() before
b
Gift of tech-Books and/or dev-tools are enough for the work in NH (for my
personal usage).
When the first request it is not possible documentation, wikis and
blog-posts for the community
both would be great ;)
with a beer occasionally better
:D
Fabio Maulo
--~--~-~--~~~--
I have fixed this by doing the following:
protected override bool ReassociateIfUninitializedProxy(object
obj, global::NHibernate.Engine.ISessionImplementor source)
{
if (!NHibernateUtil.IsInitialized(obj))
NHibernateUtil.Initialize(obj);
re
Nice currency :)
On Wed, Oct 8, 2008 at 12:12 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
>
> I would like that somebody pay with a blog.post or a wiki in
> www.nhforge.org
>
>
--
Dario Quintana
--~--~-~--~~~---~--~~
You received this message because you are sub
NHQG (but it's not to HQL, but to Criteria).
On Wed, Oct 8, 2008 at 6:24 PM, ursuletzu <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Is there anything except the Linq2Hibernate that is still in
> development that will enable writing HQL queries in a strongly typed
> way?
> At least some Query stu
Hi all,
Is there anything except the Linq2Hibernate that is still in
development that will enable writing HQL queries in a strongly typed
way?
At least some Query stuff as subsonic does...
I googled a lot this month for something like this, but i did not find
anything...
Thanks
--~--~-
Hi,
I keep getting an NHibernate.PersistentObjectException when calling
save which is due to an uninitialized proxy passed to save(). If I
fiddle with my cascade settings I can make it go away, but then child
objects aren't being saved.
Is there any way I can track down what's causing this or d
Work done in trunk.Now, Tobes, you must pay something ;)
I will explain you how work with it but you must write a blog and/or a wiki
in www.nhforge.org
Ok?
An introduction...
Available statistics Info-per-SessionFactory, are:
Global number of entity deletes
Global number of entity inserts
Glo
Hi All,
sorry if this is only in parts relevant to NHibernate.
I setup my development environment similar to "Your first NHibernate
based application".
What I like in particular is that the mappings are in a dedicated folder
("Mappings").
My application references a library which contains a c
Liviu, We would be glad to accept all the help that you can provide with
writing documentation.
On Wed, Oct 8, 2008 at 8:57 AM, Liviu U <[EMAIL PROTECTED]> wrote:
>
> Regarding : code it yourself advice, this is the biggest pain in the
> with open source projects that do not have the guts to
42 matches
Mail list logo