[nhusers] Understanding update issue with Cascade and EventListeners NH 3.0 during select

2010-12-10 Thread Maxus
goes away only appears when both are enable, I dont really understand whats going on here, can someone give me a idea of what i have done wrong? Thanks, Maxus -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhus

[nhusers] Re: Many-To-Many with audit details

2010-08-05 Thread Maxus
=MyProject.SaveEventListener, MyProject type=save- update / Hope that helps, Jim On Aug 2, 9:33 pm, Maxus rtypestud...@gmail.com wrote: Hi Diego, Thank you for response, good idea, but your right I'm not even sure how I would get the user's details in there, my user name would

[nhusers] Re: Many-To-Many with audit details

2010-08-02 Thread Maxus
... Seehttp://nhforge.org/doc/nh/en/index.html#querysql-cud http://nhforge.org/doc/nh/en/index.html#querysql-cudTimestamps are easy, but getting the user can be tricky.     Diego On Sun, Aug 1, 2010 at 00:07, Maxus rtypestud...@gmail.com wrote: Hi Nh Users, I have a Many-To-Many mapping

[nhusers] Many-To-Many with audit details

2010-07-31 Thread Maxus
Hi Nh Users, I have a Many-To-Many mapping, for example: Orders - OrderItems - Items For example: CREATE TABLE orders ( id uuid NOT NULL, code character varying(50) NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by

[nhusers] Re: NH 2.1.2.4000 + IPreUpdateEventListener + dynamic-insert=true

2010-01-12 Thread Maxus
ignores them, because it just looks at the property-dictionary. i worked around this by using an interceptor. best regards! On 12 Jan., 04:28, Maxus rtypestud...@gmail.com wrote: Another thing I forgot to say is the IPreUpdateEventListener and the IPreInsertEventListener are being run, I

[nhusers] Re: NH 2.1.2.4000 + IPreUpdateEventListener + dynamic-insert=true

2010-01-11 Thread Maxus
PreInsertEventListener() }; m_Configuration.EventListeners.PreUpdateEventListeners = new IPreUpdateEventListener[] { new PreUpdateEventListener() }; -Original Message- From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Maxus Sent: Monday, January 11

[nhusers] Re: NH 2.1.2.4000 + IPreUpdateEventListener + dynamic-insert=true

2010-01-11 Thread Maxus
Another thing I forgot to say is the IPreUpdateEventListener and the IPreInsertEventListener are being run, I can see them doing work when I save entities and have a break point in them. Just seems any entity value I change in them is ignored. Thanks, M On Jan 12, 11:07 am, Maxus rtypestud

[nhusers] NH 2.1.2.4000 + IPreUpdateEventListener + dynamic-insert=true

2010-01-10 Thread Maxus
Hi Nh People, I have come across some wierd behaviour and I cant figure out how to get around it. I have created audit listener following this article: http://ayende.com/Blog/archive/2009/04/29/nhibernate-ipreupdateeventlistener-amp-ipreinserteventlistener.aspx when the entity is persisted to

[nhusers] sp_executesql, SQL, NH 2.1.0 speed differences

2009-12-03 Thread Maxus
% Select 0% So it appears the second query is using the correct index, anyone know why this is? Thanks, Maxus -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhus...@googlegroups.com. To unsubscribe from this group

[nhusers] Re: sp_executesql, SQL, NH 2.1.0 speed differences

2009-12-03 Thread Maxus
plan is same as my second query, notice the nvarchar being changed to varchar, anyone understand whats going on here or is the quirky MS magic? Is there a way to make Nhibernate use varchar instead of nvarchar? Thanks, Maxus On Dec 3, 5:33 pm, Maxus rtypestud...@gmail.com wrote: Hi People

[nhusers] Re: sp_executesql, SQL, NH 2.1.0 speed differences

2009-12-03 Thread Maxus
Hi Pamir Erdem, Its due to the field in the db being varchar and the query converting it. The info is here: http://blog.brianhartsock.com/2008/12/14/nvarchar-vs-varchar-in-sql-server-beware/ Thanks for your help. -Maxus On Dec 3, 5:59 pm, Pamir Erdem pamir.er...@gmail.com wrote: Hi, .Most

[nhusers] Re: Password Hashing In Nhibernate

2009-10-18 Thread Maxus
2009/10/16 Maxus rtypestud...@gmail.com: Thanks for those comments. My issue is knowing when the users changed thier password, The DTO gets sent over the wire to the service, then mapped to the entity, when the entity is saved the service then needs to look at the value in the DB

[nhusers] Re: Password Hashing In Nhibernate

2009-10-18 Thread Maxus
that haven't gone across the wire allow you to access thier old field values by using: object Fieldvalue = evt.Entry.GetLoadedValue(FieldName); is it possible to have this happen for entities that have gone across the wire? Thanks, M On Oct 19, 11:11 am, Maxus rtypestud...@gmail.com wrote: Hi Oskar

[nhusers] Re: Password Hashing In Nhibernate

2009-10-15 Thread Maxus
in it. 2009/10/13 Maxus rtypestud...@gmail.com Hi People, I have business reqirement to hash the users passwords for security. Whats the best way to achive that using nhibernate? Ideally I wanted to use the set method on the password property, but due to the use of DTOs this would

[nhusers] Password Hashing In Nhibernate

2009-10-13 Thread Maxus
would rehash the already hashed value. I tried using a trigger, but nhibernate doesn't refetch the password after the trigger has hashed the value. Any ideas how best to solve this issue? Thanks in advance! -Maxus --~--~-~--~~~---~--~~ You received this message

[nhusers] Re: Hbm2ddl TimeStamp Issues

2009-04-20 Thread Maxus
for that field, and so, hbm2ddl will generate correctly 2009/4/15 Maxus rtypestud...@gmail.com Hi Nhibernate Users! I have a small issue with using the timestamp column type in SQL server 2005, when I run the schema export utility (the one in Nhibernate.tool.hbm2ddl), it creates

[nhusers] Re: Hbm2ddl TimeStamp Issues

2009-04-20 Thread Maxus
, in the NHibernate.Test.VersionTest.Db.MsSQL Code. I found the answer in this thread: http://groups.google.com/group/nhibernate-development/browse_thread/thread/dd691c52490f76f7 Thanks for your help Paulo! M On Apr 20, 2:20 pm, Maxus rtypestud...@gmail.com wrote: Hi Paulo, I gave that a try but instead it creates a column

[nhusers] Hbm2ddl TimeStamp Issues

2009-04-15 Thread Maxus
Hi Nhibernate Users! I have a small issue with using the timestamp column type in SQL server 2005, when I run the schema export utility (the one in Nhibernate.tool.hbm2ddl), it creates the timestamp as a DateTime field, which causes my inserts to fail, and isn't correct. Anyone know how I can