[nhusers] Envers with Custom SessionFactory injection

2016-08-31 Thread John Rolando Aristizabal Zuluaga
Hi, I have changed locally my Envers project to inject a custom session factory in order to support 2 separate DBs one for auditing and for the productive. *The session factory injection looks something like this:* this.SetEnversProperty(ConfigurationKey.CustomSessionFactory, typeof

[nhusers] Is nHibernate 4.x backwards compatible with SQL Server 2008?

2016-03-22 Thread John Daues
I see that nHibernate 4.x supports SQL Server 2012? Does it still work with SQL Server 2008? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [nhusers] upgrade from version 2

2016-03-21 Thread John Daues
thanks On Monday, March 21, 2016 at 12:17:21 PM UTC-6, fknebels wrote: > > General Availability > > > http://stackoverflow.com/questions/2107484/what-is-the-difference-between-ga-rc-and-m2-release > > On Mon, Mar 21, 2016 at 1:02 PM, John Daues <john.dau...@gmail.com

Re: [nhusers] upgrade from version 2

2016-03-21 Thread John Daues
Thanks for your response. That's what I was looking for. Quick question, what does GA means (as below) Build 3.4.0.GA = ** Known BREAKING CHANGES from NH3.3.0.GA to NH3.4.0.GA On Monday, March 21, 2016 at 10:18:21 AM UTC-6, Oskar Berggren wrote: > > Try the release

[nhusers] upgrade from version 2

2016-03-21 Thread John Daues
We have a legacy application (Windows SmartClient) that currently uses nHiberate 2.2. We are considering upgrading. I see the last version 3 release was 3.3.3 and that the current stable release is 4.03. I'm looking for version differences but cannot seem to find them. Can you point to these?

[nhusers] Re: Create database using NHibernate ?

2016-03-07 Thread John Rolando Aristizabal Zuluaga
How does your SchemaUpdate looks? With FluentHibernate should be something like: public NhibernateSessionFactory(IPersistenceConfigurer config) { _sessionFactory = Fluently.Configure(). Database(config). Mappings(m => m.FluentMappings.AddFromAssemblyOf()).

[nhusers] Re: Mapping Many-To-One

2016-02-16 Thread John Rolando Aristizabal Zuluaga
ManyToOne should do the trick, that's the way I do it for what you have described. Can you post your entire mapping and the exception you are getting? Am Freitag, 12. Februar 2016 16:30:40 UTC+1 schrieb Xaxa Urtiz: > > Hello, I have these object: > > > public class Entity > { >

[nhusers] Re: Two Databases with NHibernate.Envers

2016-02-16 Thread John Rolando Aristizabal Zuluaga
It is obvious that I have to give the new DB info to NHibernate as the Schema and Catalogs, For much I have tried, I don't see it where and how... Am Freitag, 12. Februar 2016 12:37:53 UTC+1 schrieb John Rolando Aristizabal Zuluaga: > > Hello everyone, > > For a year now I am being

[nhusers] Two Databases with NHibernate.Envers

2016-02-12 Thread John Rolando Aristizabal Zuluaga
one could give me a direction or an idea where should I look or what I could try? Thanks, John -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email

[nhusers] Two parts in

2016-02-12 Thread John Daues
I've come across this in an hbm.xml file: 1: I don't understand the second Dir3.Dir4. Is it specifying a namespace? a dll? I can't find documentation describing this. -- You received this message because you are subscribed to the Google Groups "nhusers"

[nhusers] Seeking advice on whether I should use NHibernate for my current task

2013-06-11 Thread John Bingham
I am needing to rewrite an old application written in vba (access) in .net; Unfortunately, since all of our clients use it, and it may be necessary to release the new application in stages, I can not change the underlying database, at this time (as the existing functionality not being

[nhusers] Weird Get behavior for child objects

2012-10-25 Thread John Prideaux
I have a brown-field application with 5 domain objects: CreditMemo, CreditMemoDetail, SalesInvoice, ReceivablesRecord, TransactionType. CreditMemo is one--many with CreditMemoDetail. It is also many-to-one with SalesInvoice. SalesInvoice is one-to-many with ReceivablesRecord which is many to

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-11 Thread John T
an NHibernate transaction? Regards, John. [Test] public void TestTransaction() { var session = /* fluffy stuff to get a session */; session.FlushMode = FlushMode.Auto; using (new TransactionScope()) using (var trans = session.BeginTransaction()) // remove this, and it fails on the Query

[nhusers] Re: Save - Query without Flush inbetween.

2012-04-11 Thread John T
() and the earlier test passes. It also commits on TransactionScope.Complete(); I am not yet aware if there is still a connection leak as according to NH-2107 in the issue log, however. Regards, John. On Tuesday, April 10, 2012 11:49:10 AM UTC+1, John T wrote: Hi guys, I've hit a problem where we have

[nhusers] Re: Save - Query without Flush inbetween.

2012-04-11 Thread John T
Well much to my fury, after wasting a full day's work after discovering this, it appears it was a false positive. It no longer passes, and I cannot see why. So changing the transaction strategy does not solve the problem(s). :( Regards, John. On Wednesday, April 11, 2012 12:45:23 PM UTC+1

[nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John T
that this is not possible unless we explicity use Get()/Load(). Has the situation improved since then, or is the same restriction still in place? Many thanks, John. [1] http://ayende.com/blog/3988/nhibernate-the-difference-between-get-load-and-querying-by-id -- You received this message because you

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John Thornborrow
code to demonstrate point: public void Foo(ISession session) { session.Save(new Client { Id = 123 }); var client = session.QueryClient().Single(each = each.Id == 123); // InvalidOpException - Sequence does not contain any elements } Regards, John. On Tue, Apr 10, 2012 at 1:31 PM, Oskar Berggren

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John Thornborrow
, John Thornborrow thornborrow.j...@gmail.com wrote: Hi, We are using Automatic flush mode, but it is very explicitly and precisely not flushing when we query. The code example I posted in my previous post is factually correct, the second line (i.e. query) will/does throw an exception. Cannot

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John Thornborrow
further up the chain, thus the Law of Demeter kicks in and well.. it's pretty ugly for the domain to know what is and isn't a concern of the DB anyway. :) Though I must ask.. why implement a Cache if it is not going to be Queryable? Regards, John. On Tue, Apr 10, 2012 at 2:40 PM, Oskar Berggren

[nhusers] Integration with WCF and TransactionScope

2012-04-10 Thread John Thornborrow
foreign keys or similar :) Any help/advice appreciated. Regards, John. -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhusers@googlegroups.com. To unsubscribe from this group, send email to nhusers+unsubscr

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John Thornborrow
. Is that any clearer? :) Regards, John. On Tue, Apr 10, 2012 at 4:08 PM, Catalin Placinta catalin.placi...@gmail.com wrote: Hi John, I am not sure that I've understood your question; if you want to control yourself the instance when the flush is being done, you only have to modify the FlushMode

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John T
Hi, Yes, I have executed the code exactly as written - and it does not work. Sequence contains no elements on the Single(). :) Regards, John. On Tuesday, April 10, 2012 5:15:16 PM UTC+1, Oskar Berggren wrote: Den 10 april 2012 16:27 skrev John Thornborrow: Hi, We are using Automatic

Re: [nhusers] Save - Query without Flush inbetween.

2012-04-10 Thread John T
Is this necessary within a TransactionScope? Thanks, J. On Tuesday, April 10, 2012 8:12:48 PM UTC+1, Gunnar Liljas wrote: You may need an explicit transaction (BeginTransaction) for autoflushing to work as expected. /G 2012/4/10 John T Hi, Yes, I have executed the code exactly

Re: [nhusers] Re: Breaking change in NH3.2.GA bytecode provider according to NH3.1.GA + Castle Bytecode Provider

2012-02-16 Thread John Davidson
One way is to comment here, but better yet is to vote on the jira issue, and the best is to provide a proposed patch that passes all tests. John Davidson On Thu, Feb 16, 2012 at 4:22 PM, Tom Bushell tbush...@bic.com wrote: How do we go about raising their awareness? -Tom On Feb 15, 11:11

Re: [nhusers] NHForge come back!

2012-02-03 Thread John Davidson
Yes, it has been noticed. We are working on it and hopefully it should be back within 24 - 36 hours at worst. John Davidson On Fri, Feb 3, 2012 at 5:20 AM, art alastair.t...@gmail.com wrote: Anyone know when nhforge might be back online, been missing it all week... -- You received

Re: [nhusers] Re: Hilo generate weird ID number

2012-01-11 Thread John Qin
Sorry, I didn't provide enough info, please let me know what else I need to post here. I did some research. change my code a little bit., still not quiet right. here's what I changed. add where to my convention, it know which entity to look for. classCustomizer.Id(c =

Re: [nhusers] Re: Hilo generate weird ID number

2012-01-11 Thread John Qin
Sorry, I didn't provide enough info, please let me know what else I need to post here. I did some research. change my code a little bit., still not quiet right. here's what I changed. add where to my convention, it know which entity to look for. mapper.BeforeMapClass += (modelInspector,

Re: [nhusers] first type exception in nhibernate.dll

2011-12-27 Thread John Davidson
is for for a version 2.x NHibernate rather than the current version. John Davidson On Mon, Dec 26, 2011 at 1:18 PM, Marcin S. Narowski axxxon...@gmail.comwrote: Hi, i'm trying to make first my app in asp.net mvc with nhibernate so i used example from http://www.codeproject.com/Articles/173203/Using-NHibernate

Re: [nhusers] Re: creating records in related tables

2011-12-10 Thread John Davidson
The hilo generator will work with many sources so long as they are using NHibernate as the ORM. If you must use identity because of external concerns you would be better off using another solution than NHibernate. Much of the NHibernate functionality does not work correctly with identity. John

Re: [nhusers] Re: creating records in related tables

2011-12-09 Thread John Davidson
on the db server and your processes may begin to work as anticipated. John Davidson On Fri, Dec 9, 2011 at 5:04 PM, aric burn...@gmail.com wrote: Sorry, I am new to NHibernate and let me clarify my question. Table 1; Request table with fields (RequestID [PK], date, subject) Table 2

Re: [nhusers] Strange Could not configure datastore from input stream and System.OutOfMemoryException exceptions

2011-12-08 Thread John Davidson
You may be getting a race condition where 2 separate threads are trying to initialize the configuration at the same time. You may need a lock to have the second thread wait until the configuration on the first thread is completed. John Davidson On Thu, Dec 8, 2011 at 2:08 PM, Florian DREVET

Re: [nhusers] NHibernate many-to-one with a composite-id entity

2011-11-27 Thread John Davidson
See http://nhforge.org/blogs/nhibernate/archive/2010/07/01/nhibernate-and-composite-keys.aspx which should give you a good start John Davidson On Sun, Nov 27, 2011 at 4:34 AM, sternr ste...@gmail.com wrote: How can I map a many-to-one relationship where the one entity has a composite-id

Re: [nhusers] NHibernate many-to-one with a composite-id entity

2011-11-27 Thread John Davidson
You need to define the composite key in Single as a Class as described in the reference article. Then that key class becomes a single property in the many-to-one mapping. John Davidson On Sun, Nov 27, 2011 at 7:20 AM, sternr ste...@gmail.com wrote: Thanks for the reply John, The link

Re: [nhusers] Downloading the Bytecode providers

2011-11-27 Thread John Davidson
Bytecode providers are not required in the current version. Ensure your configuration does not refer to any in the config fiel. John Davidson On Sun, Nov 27, 2011 at 12:45 PM, ivowiblo cadillactravo...@gmail.comwrote: Hi, I couldn't find the Bytecodes providers from nhforge.org. I also tried

Re: [nhusers] NHForge Wiki

2011-11-18 Thread John Davidson
Do you have an account on NHForge? Have you logged in? John Davidson On Fri, Nov 18, 2011 at 6:12 AM, Ricardo Peres rjpe...@gmail.com wrote: Hello, I've been trying to add a new wiki post on NHForge, but can't find a way to do so... has access to writing posts been restricted? Thanks

Re: [nhusers] Fwd: Transaction unit-of-work not working

2011-11-10 Thread John Davidson
How are you creating your id for the row? if it is done in the database that is the reason for this behaviour. See Jason's comments above. John Davidson On Thu, Nov 10, 2011 at 5:05 PM, The Last Ottoman ottomanthel...@gmail.comwrote: I think the exception is not important here. It is just

Re: [nhusers] NHibernate 3.2

2011-11-07 Thread John Davidson
You may have a reference in an old app.config file that is hanging around in a bin directory. John Davidson On Mon, Nov 7, 2011 at 4:45 PM, Steve Taylor stay...@novologic.com wrote: Hello, I am upgrading my .NET application to 3.2 and keep getting the following error when trying to run

Re: [nhusers] NHibernate.QueryException : duplicate association path

2011-11-02 Thread John Davidson
== Large) .Add(() = attributeValueAlias2.Value == Blue) .List(); John Davidson On Wed, Nov 2, 2011 at 10:33 AM, Neil McLaughlin n...@echelon-solutions.co.uk wrote: The code fragment below describes what I want to do using criteria but it blows up with the above

Re: [nhusers] Re: NH join only working for first entity

2011-10-18 Thread John Davidson
Searches for EAV NHibernate may produce some useful results for you. John Davidson On Tue, Oct 18, 2011 at 8:08 AM, Davec davepcal...@gmail.com wrote: You say always but is there a way to tell NH not to do this? I'm using the latest version. The model is loosely EAV so this is why we don't

Re: [nhusers] Re: NH join only working for first entity

2011-10-18 Thread John Davidson
Patches that old will probably not apply correctly to the current version. You will need to work out what fix you want from scratch and resubmit a new jura, possible linking to the old. John Davidson On Tue, Oct 18, 2011 at 10:28 AM, Davec davepcal...@gmail.com wrote: Cheers, John, its

Re: [nhusers] Session Factory Exception

2011-10-04 Thread John Davidson
Can you please supply a bit more information. A stack trace would be useful. John Davidson On Tue, Oct 4, 2011 at 5:39 AM, Mahmoud Hosny mahmoud.e.hosn...@gmail.comwrote: I Recive this Error when createing sessionFactory Configuration.BuildSessionFactory(); Format of the initialization

Re: [nhusers] Re: Other side of any or many-to-any

2011-09-29 Thread John Davidson
You probably need to change your model. It may be possible that you have a true any-to-any relationship as there are use cases to cover what you are doing. The way to map that is to create an xref table and make 2 many-to-many relationships. John Davidson On Thu, Sep 29, 2011 at 1:50 PM

Re: [nhusers] Re: Why use Guid.Comb? A lot more fragementation then needed...

2011-09-15 Thread John Davidson
the same manufacturer and purchased at the same time it is highly likely that you will get collisions. John Davidson On Thu, Sep 15, 2011 at 3:29 AM, kriebb riebbels.kris...@gmail.com wrote: Thank you for your reply. I read the FM. But I never believe in just one man... Most of the time

Re: [nhusers] Why use Guid.Comb? A lot more fragementation then needed...

2011-09-14 Thread John Davidson
I think you will get the same key generated in some cases if you run on a web farm. John Davidson On Wed, Sep 14, 2011 at 10:52 AM, kriebb riebbels.kris...@gmail.com wrote: Hi, We just filled up our data with some values... And we noticed that our primary key index was fragemented... So

Re: [nhusers] Re: prevent unnecessary cross joins in count query of generated sql code

2011-09-13 Thread John Davidson
. Ensure the mapping is marked mutable=false. 3. Change your code for doing the count to now go against the repository for ViewPublications. You really need to do this yourself so that you learn how to do it. John Davidson On Tue, Sep 13, 2011 at 3:26 AM, csetzkorn c.setzk...@liv.ac.uk wrote

Re: [nhusers] Re: prevent unnecessary cross joins in count query of generated sql code

2011-09-12 Thread John Davidson
connoting then you need a separate class to do so that does not have the join mapped. It should also be marked as readonly so that it does not interfere with your other processes. John Davidson On Mon, Sep 12, 2011 at 7:29 AM, csetzkorn c.setzk...@liv.ac.uk wrote: Thanks for your reply. I am sorry

Re: [nhusers] Re: prevent unnecessary cross joins in count query of generated sql code

2011-09-12 Thread John Davidson
You need a new class with no joins to do what you want. No other way!! John Davidson On Mon, Sep 12, 2011 at 8:33 AM, csetzkorn c.setzk...@liv.ac.uk wrote: Sorry I still do not understand. This is my C# code: return from oi in NHibernateSession.Current.QueryBlaInteraction() select new

Re: [nhusers] Re: prevent unnecessary cross joins in count query of generated sql code

2011-09-09 Thread John Davidson
So your Publications class is mapped with a join to Statements. If you want your query to not include that inner join then you need to create another class, say RoPublications, that is set as read only and does not have the join, then use that class for your count. John Davidson On Fri, Sep 9

Re: [nhusers] Denormalized many-to-one

2011-09-09 Thread John Davidson
Create a view with the 4 properties and then make a readonly class on that view. John Davidson On Fri, Sep 9, 2011 at 12:10 PM, raffaeu raff...@gmail.com wrote: Good morning everybody. I have a very particular request for a denormalized mapping. It is a legacy requirement. I have two

Re: [nhusers] Re: Row level locking with batch retrieval

2011-09-06 Thread John Davidson
to be returned. John Davidson On Tue, Sep 6, 2011 at 4:27 PM, Waqar Sadiq sadiq.wa...@gmail.com wrote: My original code is actually in HQL. It generates exactly the same query. Do you have suggestions as to how to write a query in HQL that would return a single row without using rownum. My

Re: [nhusers] connection release with TransactionScope and MSDTC

2011-09-01 Thread John Davidson
Sub transaction connections would not be released until the main transaction issued a commit or rollback, which all sub transactions would then also perform and after they are all done then the connections would be released. John Davidson On Thu, Sep 1, 2011 at 1:00 AM, Joseph Lam jla

Re: [nhusers] NHibernate 3 Beginners Guide by Gabriel Schenker published

2011-08-29 Thread John Davidson
The book is available through PACKT at Buy the bookhttp://www.packtpub.com/nhibernate-3-beginners-guide/book The list of NHibernate related books is at http://nhforge.org/content/Books.aspx John Davidson On Mon, Aug 29, 2011 at 10:32 AM, José F. Romaniello jfromanie...@gmail.com wrote: Hi

Re: [nhusers] Re: NHibernate 3.2 SetFirstresult, Setmaxresults paging problem oracle

2011-08-18 Thread John Davidson
See https://nhibernate.jira.com/browse/NH-2840 add a vote if this is what you need. John Davidson On Thu, Aug 18, 2011 at 2:10 AM, James Webster jim.mcs...@gmail.com wrote: Yes I have encountered this issue as well with NHibernate 3.2 (from Nuget) and Oracle. Is this the new behaviour

Re: [nhusers] Dirty optimistic locking

2011-08-03 Thread John Davidson
nothing to do with the property changing type and everything to do with the locking on a subclass. John Davidson On Wed, Aug 3, 2011 at 12:43 PM, David Schmitt da...@dasz.at wrote: On 03.08.2011 18:01, Tyler Burd wrote: Here is a Hibernate (java) issue that describes the problem somewhat

Re: [nhusers] ORA-01036: illegal variable name

2011-07-27 Thread John Davidson
If you would really like an answer to your issue then I suggest posting the details to this list rather than using PasteBin John Davidson On Wed, Jul 27, 2011 at 2:44 PM, bsnl dotsoftb...@gmail.com wrote: Dont see way to resolve the issue http://pastebin.com/LXTKWsp6 This is what happen

Re: [nhusers] Re: projections and query cache issue, maybe?

2011-07-25 Thread John Davidson
It will be announced here and at nhforge.org John Davidson On Mon, Jul 25, 2011 at 2:59 PM, Joe B joe.brockh...@gmail.com wrote: thanks, I was able to avoid the exception by removing my SetCache() .. SetCacheRegion() calls. Where should I keep checking to know when the latest release

Re: [nhusers] profile a remote system with NHProf?

2011-07-25 Thread John Davidson
http://groups.google.com/group/nhprof is the correct group for nhprof related questions. John Davidson On Mon, Jul 25, 2011 at 2:58 PM, Joe B joe.brockh...@gmail.com wrote: Is this possible? I tried googling and looking at docs, but can't find how this is supposed to work, other than mention

Re: [nhusers] SQL query on two tables getting mixed up .... why???

2011-07-20 Thread John Davidson
Add an alias to both of the values being returned select doc.name as docname, grp.name as grpname ... or whatever is correct for your SQL flavour John Davidson On Wed, Jul 20, 2011 at 7:36 AM, PLen petera...@earthlink.net wrote: Hello, I am using NHibernate 3.0 and for one of my queries I

Re: [nhusers] Re: Should save or merge generate sql if the session is not flushed?

2011-07-19 Thread John Davidson
I think that merge has an implied flush that happens if it is required, i.e. if there is an insert condition - it is necessary to assigned the object id and validate that it stored correctly John Davidson On Tue, Jul 19, 2011 at 12:00 PM, gusgorman augustusgor...@yahoo.co.ukwrote: Hi John

Re: [nhusers] Re: Should save or merge generate sql if the session is not flushed?

2011-07-18 Thread John Davidson
See http://stackoverflow.com/questions/170962/nhibernate-difference-between-session-merge-and-session-saveorupdate for a description of what merge does. In some cases an insert would be a valid action as part of a merge. John Davidson On Mon, Jul 18, 2011 at 10:50 AM, gusgorman augustusgor

Re: [nhusers] Re: Mapping by code - how to get TableName for class in ModelMapper.AfterMapClass event?

2011-07-14 Thread John Davidson
Did you check in the NHibernate.Mapping namespace? John Davidson On Thu, Jul 14, 2011 at 10:40 AM, Filip Kinsky fi...@filovo.net wrote: I've just raised JIRA issue for this: https://nhibernate.jira.com/** browse/NH-2794 https://nhibernate.jira.com/browse/NH-2794 -- You received

Re: Re: Re: Re: [nhusers] NHibernate Flushing the Session question.

2011-07-13 Thread John Davidson
to work just in sql statements - and if you do that would mean you need to redesign how this process should function. John Davidson On Wed, Jul 13, 2011 at 11:23 AM, mynkow myn...@gmail.com wrote: well, I cannot clear the collection from business perspective. And the you are right about

Re: [nhusers] Re: Memory Leak during Bulk Insert

2011-07-13 Thread John Davidson
Yes, transactions are mandatory for _ALL_ reads and writes using NHibernate. Since v2.x John Davidson On Wed, Jul 13, 2011 at 12:28 PM, Michael Hedgpeth mhedgp...@gmail.comwrote: Vahid, Even outside of the bulk question there still is a memory issue. The ActionQueue class is written

Re: [nhusers] Re: Memory Leak during Bulk Insert

2011-07-13 Thread John Davidson
Because it is common to have multiple transactions within a session, depending on the type of host you are using. John Davidson On Wed, Jul 13, 2011 at 4:35 PM, Ramon Smits ramon.sm...@gmail.com wrote: Yes, transactions are mandatory for _ALL_ reads and writes using NHibernate

Re: [nhusers] Issue Tracker Link Broken or Down?

2011-07-12 Thread John Davidson
The new address is https://nhibernate.jira.com/ The redirect may not be working from the old address to the new. John Davidson On Tue, Jul 12, 2011 at 4:56 AM, Berke Sokhan berkesok...@gmail.com wrote: Hello, Issue tracker link in NHForge site pointing *jira.nhforge.org* does

Re: [nhusers] Access noop and formula in mapping

2011-07-08 Thread John Davidson
If you note in the comments to that post that it would be very hard to implement in LINQ. It is most likely that the LINQ provider does not support this functionality. If you really need it then I would suggest using the HQL as in Ayende's post. John Davidson On Fri, Jul 8, 2011 at 10:40 AM

Re: [nhusers] Criteria FetchMode being ignored. bug?

2011-07-06 Thread John Davidson
You could create a second mapping, with a different name as a read only entity and then not map the collections that are not required. This should work well for filling the grid. John Davidson On Wed, Jul 6, 2011 at 10:09 AM, Joe B joe.brockh...@gmail.com wrote: I'm in crunch mode

Re: [nhusers] Re: Criteria FetchMode being ignored. bug?

2011-07-06 Thread John Davidson
It would be a new type and a new mapping, probably with just the fields you need. A formula may be a reasonable way of filling the 2 calculated fields if you are not confident of your dba skills. John Davidson On Wed, Jul 6, 2011 at 1:04 PM, Joe B joe.brockh...@gmail.com wrote: wait, do you

Re: [nhusers] Re: NHibernate mapping

2011-06-25 Thread John Davidson
It is not valid to have a relationship by only part of a PK. This is not an NHibernate restriction but a relational db requirement. If you need to use only part of a PK, they you need to decompose your tables further. Either your DB design is wrong or your Object Model is wrong. John Davidson

Re: [nhusers] Re: NHibernate mapping

2011-06-24 Thread John Davidson
If you absolutely must use a composite key then the link below will help you http://nhforge.org/blogs/nhibernate/archive/2010/07/01/nhibernate-and-composite-keys.aspx John Davidson On Fri, Jun 24, 2011 at 12:43 PM, Leonid Krogliak krogli...@gmail.comwrote: anyone??? -- You received

Re: [nhusers] persistent class not found Exception after upgrading to 3.1.0

2011-06-23 Thread John Davidson
Try it as many-to-one name=Temperature column=TemperatureId not-null=true/ It may be a case of too much information. John Davidson On Thu, Jun 23, 2011 at 8:47 AM, Steve stefan.seif...@gmail.com wrote: Hello, I recently upgraded to 3.1.0 and now i'm facing a strange error nhibernate telling

Re: [nhusers] translating SQL into NHibernate Query

2011-06-21 Thread John Davidson
If all else fails and you know the sql you want to use then see http://knol.google.com/k/nhibernate-chapter-14-native-sql# CreateSQLQuery will allow direct execution of sql you define John Davidson On Tue, Jun 21, 2011 at 1:06 PM, Karl Cassar casas...@gmail.com wrote: anything? seems

Re: [nhusers] Re: NHibernate config problem

2011-06-08 Thread John Davidson
that file and where to find it. John Davidson On Wed, Jun 8, 2011 at 9:38 AM, scottl2001 scottlackey2...@yahoo.comwrote: hmmm I'm using NHibernate.Cfg.Configuration(), which does not take any arguments... On Jun 7, 5:42 pm, John Davidson jwdavid...@gmail.com wrote: You should tell your

Re: [nhusers] NHibernate config problem

2011-06-07 Thread John Davidson
You should tell your configuration which file contains the configuration data and where it is: configuration = new Configuration().Configure(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, app.config)); John Davidson On Tue, Jun 7, 2011 at 3:27 PM, scottl2001

Re: [nhusers] Re: Named entities with Query or QueryOver

2011-06-05 Thread John Davidson
You are missing how generics work what EA sent you will work for all entities var dogData = IQuerableDog().FetchAll() var houseData = IQueryableHouse().FetchAll() John Davidson 2011/6/5 Kenneth Siewers Møller kenneth.siew...@gmail.com No, that's just querying by type. The problem is that I

Re: [nhusers] Named entities with Query or QueryOver

2011-06-04 Thread John Davidson
Does your repository interface use a generic? A properly designed interface using a generic allows this easily. John Davidson On Sat, Jun 4, 2011 at 6:52 PM, Gunnar Liljas gunnar.lil...@gmail.comwrote: What do you mean by returns an IQueryable from a named entity? 2011/6/4 Kenneth Siewers

Re: [nhusers] targeting different builds is affecting a save routine

2011-05-31 Thread John Davidson
, then use the 32bit as it is faster. 32 bit supports inlining of functions in the CLR while the 64bit version does not, also the registers are smaller and the memory potentially less fragmented, allowing for faster GC. John Davidson On Tue, May 31, 2011 at 10:01 AM, Paulo Quicoli pauloquic

Re: [nhusers] Unexpected data removal followed by a data fill in

2011-05-30 Thread John Davidson
I would suspect your session management, especially if it is multi-threaded. NHibernate does not support multi-threaded session-management. Session Factory can be multi-threaded. John Davidson On Mon, May 30, 2011 at 10:30 AM, VCS b.jeany...@gmail.com wrote: We use NHibernate in our

Re: [nhusers] Nhibernate.Cfg.Configuration Unable to generate a temporary class (result=1).

2011-05-27 Thread John Davidson
This is an error from the CLR not NHibernate. See http://social.msdn.microsoft.com/Forums/en/quebeccomponentsforum/thread/d7584c52-9228-421b-9f61-b4c83e7a699f for a probable resolution (setting permission for ASPNET account) John Davidson On Fri, May 27, 2011 at 11:31 AM, Ilia Ternovich ternov

Re: [nhusers] Nhibernate.Cfg.Configuration Unable to generate a temporary class (result=1).

2011-05-27 Thread John Davidson
=fdc39e236390ec4bbiw=1421bih=821 John Davidson On Fri, May 27, 2011 at 1:12 PM, Ilia Ternovich ternov...@gmail.com wrote: Hello John! Sory your case isn't related to my one. I'm building desktop application using WPF. As I said before there were numerous attempts to set different folder for serialization using

Re: [nhusers] Nhibernate.Cfg.Configuration Unable to generate a temporary class (result=1).

2011-05-27 Thread John Davidson
What users have access, especially non-people type users NETWORK etc John Davidson On Fri, May 27, 2011 at 2:21 PM, Ilia Ternovich ternov...@gmail.com wrote: Forward details: {Unable to generate a temporary class (result=1).\r\nerror CS0016: Could not write to output file 'c:\\Program Files

Re: [nhusers] Slow performance when looping through Nhibernate list

2011-04-24 Thread John Davidson
If you provide the mappings we can give more detailed advice, but most likely it is because you are querying child collections as you iterate the list. A tool like NHProf will let you see what is going on. John Davidson On Sun, Apr 24, 2011 at 6:31 AM, aldrich12 aldric...@gmail.com wrote: I

Re: [nhusers] Mapping.ByCode using conventions.

2011-04-12 Thread John Davidson
Have you tried ConfORM by Fabio Muolo http://code.google.com/p/codeconform/ http://code.google.com/p/codeconform/John Davidson On Tue, Apr 12, 2011 at 5:14 PM, mynkow myn...@gmail.com wrote: Hi, I am trying to map classes by convention. The first try was just to create any mapping but I

Re: [nhusers] NH criteria on loaded items

2011-04-01 Thread John Davidson
Linq-for-objects does this John Davidson On Fri, Apr 1, 2011 at 4:12 PM, Krishna Jetti jetti.kris...@gmail.comwrote: Hello All, If we have a list of items loaded on a session and now I want to only the items that follow a criteria from this list, is there any way to apply this criteria

Re: [nhusers] Fetch mechanism without Proxy/Lazy load

2011-03-21 Thread John Davidson
Do not map the children and parent together and then you are able to do selects as you want on-demand. John Davidson On Mon, Mar 21, 2011 at 10:53 AM, raffaeu raff...@gmail.com wrote: Hi eveybody, I have a concern on how the fetch mechanism works in Nhb 3.1 when the domain is plain and does

Re: [nhusers] singleton ISession isolating concurrent threads from web service

2011-03-16 Thread John Davidson
Cache information for NHibernate is at: http://nhforge.org/doc/nh/en/index.html#performance-cache Implementing this correctly could save the additional round trips, also Microsoft has a sample at http://archive.msdn.microsoft.com/RiaServices John Davidson On Wed, Mar 16, 2011 at 5:27 PM

Re: [nhusers] singleton ISession isolating concurrent threads from web service

2011-03-15 Thread John Davidson
-and-sessionperrequest.aspx A more complex solution http://nhforge.org/blogs/nhibernate/archive/2011/03/03/effective-nhibernate-session-management-for-web-apps.aspx John Davidson On Tue, Mar 15, 2011 at 6:11 PM, Joe Brockhaus joe.brockh...@gmail.comwrote: Hi all, I'm trying to get an indication

Re: [nhusers] Re: HQL + How to avoid the need to create a new data-transfer class for each query ?

2011-03-13 Thread John Davidson
; } The TopicDTO is defined in its own class of cours. John Davidson On Sun, Mar 13, 2011 at 6:06 PM, José F. Romaniello jfromanie...@gmail.comwrote: ditto. Who wants half object? 2011/3/13 John Davidson jwdavid...@gmail.com And what happens when a flush occurs? How does NHibernate know to ignore

[nhusers] Using SchemaUpdate with MySQL

2011-03-03 Thread John Bosley
SchemaUpdate where I seem to have a problem. any ideas would be much appreciated! John -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhusers@googlegroups.com. To unsubscribe from this group, send email to nhusers

Re: Re: Re: Re: [nhusers] NHibernate Exception

2011-02-26 Thread John Davidson
If you are managing the Id value in your code you should use a generator of assigned rather than native. John Davidson On Sat, Feb 26, 2011 at 10:56 AM, belvasis...@googlemail.com wrote: It would be very nice, if someone could take a quick look at the described problem. Maybe i do something

Re: Re: Re: Re: Re: [nhusers] NHibernate Exception

2011-02-26 Thread John Davidson
Why do you need that override if you want to use native. If you are using native, then there should be no override that sets the id value anywhere in your code. John Davidson On Sat, Feb 26, 2011 at 12:27 PM, belvasis...@googlemail.com wrote: I don't really want to manage the ID value in code

Re: Re: Re: Re: Re: Re: [nhusers] NHibernate Exception

2011-02-26 Thread John Davidson
Then you need to use assigned instead of native. John Davidson On Sat, Feb 26, 2011 at 1:42 PM, belvasis...@googlemail.com wrote: As far as i understood all this, i have to use native, if i want to provide my own ID generation. And i need this because the DB uses a TBL_IDEN for ID's

Re: [nhusers] SaveOrUpdateCopy not requerying database

2011-02-19 Thread John Davidson
Try a session.Get on the id before calling the SaveOrUpdate so that NHibernate Sessions knows about the object John Davidson On Fri, Feb 18, 2011 at 4:38 PM, gwh glenn.hemm...@gmail.com wrote: Hi, I have an NHibernate object that is loaded and transferred from a WCF service. The client

Re: [nhusers] Can we insert Composite key into database using nHibernate?

2011-02-17 Thread John Davidson
to do so. If all your keys are composite keys then NHibernate will not be the most effective means of accessing an RDBMS. John Davidson On Thu, Feb 17, 2011 at 6:52 PM, Sandy sandipto...@gmail.com wrote: Hi, We are planning to use nHibernate in our new project. We want to know

Re: [nhusers] Assigning Default Catalog and Default Schema Property in Hibernate.cfg.xml

2011-02-11 Thread John Davidson
Those values are the names you assigned to the schema and the catalog in the database when you created it. Only you know the values. A hint: What would the values be for the connection string if this were not an NHibernate project, but just an ASP.Net project? John Davidson On Thu, Feb 10, 2011

Re: [nhusers] NHibernate eats memory

2011-02-10 Thread John Davidson
= session.BeginTransaction()) { User user = session.GetUser(userId); tx.Commit(); } } John Davidson On Thu, Feb 10, 2011 at 6:44 AM, Paul Allington p...@intelligentpenguin.co.uk wrote: I've also written a really simple web example to show a data

Re: [nhusers] NHibernate eats memory

2011-02-10 Thread John Davidson
With respect to unmanaged code log4net uses 3 system level dll and the libc library, while NHibernate has links to some diagnostic code which references to VisualC libraries. This can be verified through Reflector John Davidson On Thu, Feb 10, 2011 at 9:28 AM, Jason Meckley jasonmeck

Re: [nhusers] Re: HOWTO: one to many, simple entity collection mapping.

2011-02-09 Thread John Davidson
they appreciate and then reciprocate when the answer requires a higher degree of expertise. I have been work on various OSS for almost 15 years and this is how it really works. John Davidson On Wed, Feb 9, 2011 at 12:26 PM, Joe Brockhaus fel0ni...@gmail.com wrote: i'm well-aware of how to make my entity

Re: [nhusers] NHibernate eats memory

2011-02-09 Thread John Davidson
What are the general archictural components? and what is your threading model? John Davidson On Wed, Feb 9, 2011 at 12:49 PM, Paul p...@intelligentpenguin.co.uk wrote: Hello I'm having issues with NHibernate and the amount of memory it uses. I've tried turning off all caching, however

Re: [nhusers] NHibernate eats memory

2011-02-09 Thread John Davidson
://uk.linkedin.com/in/paulallington[image: Twitter]http://twitter.com/paulallington Contact me: [image: Google Talk/]phallington [image: Skype/]paul-allington [image: Y! messenger/]paul_allington On Wed, Feb 9, 2011 at 6:13 PM, John Davidson jwdavid...@gmail.comwrote: What are the general archictural

  1   2   3   4   5   >