Mi espanol no esta bueno para nada pero securo que voy a estudiar tu posts! :)
I just started reading it but yes it looks like what I was thinking to. On Mon, Oct 25, 2010 at 23:53, Fabio Maulo <[email protected]> wrote: > someone of your point sound like this serie: > http://fabiomaulo.blogspot.com/2009/05/empezando-con-nh-mappings.html > > On Mon, Oct 25, 2010 at 6:19 PM, Alessandro Ghidini < > [email protected]> wrote: > >> Hi Fabio, >> I'll have to think a bit (my list can be unfortunately long) but the first >> I can remember are: >> >> 1) disabling the lazy loading behaviour instead of using the right fetch >> mode >> 2) not using a transaction when "just" selecting data >> 3) not using the futures when sending more than one query >> 4) not putting upper and lower bounds when selecting the data (read the >> last 2 also as not performing a good pagination query) >> 5) I know that this is not directly related to NH, but think to a web >> service call which is set to return an object coming from a query: during >> the serialization of the response NH will be asked to resolve every property >> contained into the object (which the user may not be interested in). So the >> bad habit here could be to expose the NH related entity instead of a DTO or >> something like that. Webservices are another reason for disabling the >> lazyload cause they do not like to serialize the proxies >> 6) An example similar to the previous is when you load (with an >> objectdatasource) an entity which contains multiple related objects and bind >> it to a control who shows the properties of the contained objects making NH >> perform a number of additional queries >> 7) You don't have only the Criteria way of performing queries.. HQL is >> much more simple to use in many cases >> >> I know that I should rewrite this list in an understandable english but I >> hope that you'll get the point :) >> >> Ciao e grazie >> >> Ale >> >> On Mon, Oct 25, 2010 at 22:39, Fabio Maulo <[email protected]> wrote: >> >>> Ale, >>> can you recall which was the list of "bad practices" ? >>> >>> >>> On Mon, Oct 25, 2010 at 4:42 PM, Ghidello >>> <[email protected]>wrote: >>> >>>> What I think will be really usefull is a "live" list of bad practices >>>> and habits using NH. I saw many people (Yes, I'm talking about me >>>> hiding myself between my imaginary friends.. :D ) getting involved >>>> into NH without having a real understanding of the environment. I saw >>>> the same people googling for solving a specific problem and coming up >>>> with quick and dirty solution "thast simply works". Finally I saw >>>> people saying "Ups" and "Doh" more and more often when, finally, they >>>> found the time to start studying seriously NH and they realized the >>>> number of mistakes they made. >>>> >>>> This is the reason why I'm talking about a live page of bad habits: >>>> people is very productive when talking about weird solutions! :) A >>>> good list of things to avoid would drive their google search to a >>>> better solution until they'll have the time to understand the right >>>> way by theirself. >>>> >>>> Thanks in advance from the "people"! >>>> >>>> Alessandro >>>> >>>> On Oct 25, 2:35 pm, Fabio Maulo <[email protected]> wrote: >>>> > Consider this thread as a poll to know what you would like to have in >>>> our >>>> > reference documentation. >>>> > We know that we have some obsolete info, some incomplete info and a >>>> lot of >>>> > info spanned in various blog posts. >>>> > >>>> > What you would like to have in our reference documentation ? >>>> > >>>> > more images ? >>>> > step by step example about some general mapping task ? >>>> > specific "How to" ? about what ? >>>> > more details about extensions points ? which one ? >>>> > .... >>>> > .... >>>> > .... >>>> > >>>> > Please collaborate with some ideas and will try to find a solution. >>>> > We will use this thread to find better ideas and apply it. >>>> > >>>> > Thanks. >>>> > -- >>>> > Fabio Maulo >>>> > >>>> > P.S. try to avoid to transform this thread in personal discussion, >>>> each one >>>> > has an opinion and opinions, in this case ( ;-) ), are welcome. >>>> >>>> -- >>>> 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]<nhusers%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/nhusers?hl=en. >>>> >>>> >>> >>> >>> -- >>> 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]<nhusers%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/nhusers?hl=en. >>> >> >> >> >> -- >> Alessandro Ghidini >> >> -- >> 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]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> > > > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- Alessandro Ghidini -- 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.
