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 be set everytime the entity went out and came back in
which
Hi!
After little sourcecode browsing in the latest 2.1.400 version I
noticed that the schemaupdate doesn't alter a column which already
exists?
Would'nt that be a great feature to be able to sync existing db
schema. But maybe there is some cons against such a approach.
Is it teh same with
Hi,
I have a series of entities (for example Product entities) which have
properties/collections associated with them. However, some of the
collections and properties on the entity may be context specific, i.e.
prices which are specific to a given customer etc. Clearly this
requires that when
Hi, have look to this topic:
https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/filters.html
2009/10/13 JamesSpibey james.spi...@gmail.com
Hi,
I have a series of entities (for example Product entities) which have
properties/collections associated with them. However, some of
http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspxhttp://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx
http://nhforge.org/wikis/howtonh/contextual-data-using-nhibernate-filters.aspx
2009/10/13 José F. Romaniello
Oh no!
http://www.nhforge.org/doc/nh/en/index.html#objectstate-filters
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Tue, Oct 13, 2009 at 2:01 PM, José F. Romaniello
jfromanie...@gmail.comwrote:
I think Ayende has a post on his blog about using an IUserType
Implementation to store/retrieve hashed passwords.
On Oct 13, 5:52 am, Oskar Berggren oskar.bergg...@gmail.com wrote:
One way to do it:
My user has a property EncryptedPassword, which is usually a hash.
Probably public get, but
Thanks Oskar,
That will require LINQ to NH, which I can't execute at the moment,
but I plan on upgrading project dependencies in the near future so
I'll give it a shot when I do.
- Chris
On Oct 9, 6:10 pm, Oskar Berggren oskar.bergg...@gmail.com wrote:
You seem to already have the manager
How To Unlock Locked iPod
http://bit.ly/hddpp
http://bit.ly/hddpp
How To Unlock Locked iPod
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to
Hi all,
I have a question concerning Relations in NHibernate.
To illustrate my question, here's an example:
class Category
{
public int Id {get; set;}
public string Name {get; set;}
public IListProduct Products{get; set;}
}
class Product
{
public int Id {get; set;}
public string
Hi folks,
I have a mapping files and I create my database from the mappings. The
database has Default value field which I want to populate but NHib
looks like does not support this. Can you help me how can I set
default values of my properties? It is not necessary to do it in the
database but in
Does anyone have clue about this one?
I have 2 projects, one for domain model and one for web. I have a
class to take care of initialize NHibernate and Session in site domain
model assembly. Everything worked perfectly in localhost. However when
i uploaded the code to server. I got this
you need to draw a line between what can be executed in the DB
(transformed to SQL clause) and what needs to be executed in memory
(calling methods):
var query = from user in user_rep
where user.Login == test
select user;
var results = from user in
I've implemented a custom set, resulting in 2 set classes (StockSet
and PersistentStockSet, which derives from PersistentSetStock), both
implementing the same interface IStockSet which is used in my class. I
have created a StockSetUserType class which implements
IUserCollectionType, and don't
So I think I found an issue with the HQL to SQL mapping. Of course
this could just be something I'm doing wrong, which is why I'd be
interested in some feedback. (c:
Here is the HQL:
FROM Location loc
WHERE
((loc.LocationName LIKE :SearchValue)
or (loc.LocationShortName LIKE :SearchValue)
or
I am trying to do a freetext query, but both of the following are
giving me SELECT N+1 according to NHProfiler ... am I missing
something obvious here?
Cheers
Jak
list = session.CreateSQLQuery(Select DISTINCT
CurriculumVitae.* from CurriculumVitae where Contains
No, that was intended as HQL.
/Oskar
2009/10/13 Chris F mcfaz...@gmail.com:
Thanks Oskar,
That will require LINQ to NH, which I can't execute at the moment,
but I plan on upgrading project dependencies in the near future so
I'll give it a shot when I do.
- Chris
On Oct 9, 6:10 pm,
Have you checked that the file log4net.dll was uploaded correctly?
/Oskar
2009/10/13 thaianhduc anhduc.t...@gmail.com:
Does anyone have clue about this one?
I have 2 projects, one for domain model and one for web. I have a
class to take care of initialize NHibernate and Session in site
2009/10/13 Fuehner jfueh...@gmail.com
My question is; how can I tell NHibernate I do not want to use a
transaction..?
My question is. How you can execute a query, in a RDBMS, without, at least,
an implicit transaction ?
--
Fabio Maulo
--~--~-~--~~~---~--~~
The View has a string with the password wrote by user.The Presenter will
create the DTO with that password.
The Model/Service will receive the DTO, will calculate the hash and will
assign it to the entity.
That all Business Logic without NH involved in it.
2009/10/13 Maxus rtypestud...@gmail.com
I'm exploring the NH.Linq project (based on criteria)... and I can't
understood the datetime management..Specialy this:
https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Linq/src/NHibernate.Linq/SqlClient/SqlClientExtensions.cs
Why we can't just do?:
from a where
Short answer, this is not implemented otherwise.It can be done, but nobody
did it.
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Tue, Oct 13, 2009 at 7:53 PM, José F. Romaniello
Hi,
I'm binding a DataList control in ASP.net to an IList of Video
entities returned by a NH query. The DataList is paginated and if I
move from one page to the other, NH gets the data from the 2nd level
cache because I've cached the query.
The entities in my IList look like this :
Video {Id,
what should do NH if the Owner is not part of the cached query ?
2009/10/13 graphicsxp graphic...@googlemail.com
Hi,
I'm binding a DataList control in ASP.net to an IList of Video
entities returned by a NH query. The DataList is paginated and if I
move from one page to the other, NH gets
AFAIY it is part of the cached query. If I debug it and look at the
Owner property, it is not proxied. Plus, I did a quick test by
retrieving the Owner property in the code-behind whenever I move from
one page to the other in my DataList, and the Owner is NOT fetched
from the database, it is
AFAIY it is part of the cached query. If I debug it and look at the
Owner property, it is not proxied. Plus, I did a quick test by
retrieving the Owner property in the code-behind whenever I move from
one page to the other in my DataList, and the Owner is NOT fetched
from the database, it is
AFAIY it is part of the cached query. If I debug it and look at the
Owner property, it is not proxied. Plus, I did a quick test by
retrieving the Owner property in the code-behind whenever I move from
one page to the other in my DataList, and the Owner is NOT fetched
from the database, it is
sorry, I have no idea why my message was posted 3 times !
On 13 oct, 19:24, graphicsxp graphic...@googlemail.com wrote:
AFAIY it is part of the cached query. If I debug it and look at the
Owner property, it is not proxied. Plus, I did a quick test by
retrieving the Owner property in the
Fabio--
Not sure I follow... All I'm trying to do is make a call to a stored
procedure and get back results in a list...
Session.CreateSQLQuery(exec MyStoredProc).ListT();
Is this not the appropriate approach to call a stored procedure..?
On Oct 13, 11:09 am, Fabio Maulo
Hello!
I was wondering a little bit on the behavior of the hilo-generator.
Mappings:
class entity-name=Elev
id name=ID column=Id type=Int32
generator class=hilo /
/id
idbag name=Klasses table=Elev_Klass cascade=save-update
collection-id column=collection_index
I have a root entity which has a set mapping collection of child
entities
set name=Childs lazy=false cascade=save-update
inverse=true
cache usage=read-write /
key column=RootId/
one-to-many class=Child/
/set
when I add a child to the root and update it, there is an
to prevent big PK fragmentation the High, NH, is per-table
2009/10/13 cws cw.stenb...@gmail.com
Hello!
I was wondering a little bit on the behavior of the hilo-generator.
Mappings:
class entity-name=Elev
id name=ID column=Id type=Int32
generator class=hilo /
/id
idbag
Thank you, I will have a look.
2009/10/13 Tuna Toksoz tehl...@gmail.com
Short answer, this is not implemented otherwise.It can be done, but nobody
did it.
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
Hi Stefan,
Thanks for your help!
On 12 Ott, 16:12, Stefan Wenig stefan.we...@rubicon.eu wrote:
you need to draw a line between what can be executed in the DB
(transformed to SQL clause) and what needs to be executed in memory
(calling methods):
Browsing the web I found indications that, as
Hi,
I am developing an application that is storing sensitive data. I have
implemented the IUserType EncryptedString to encrypt and decrypt
strings. But I also have a requirement to encrypt any attachments
before saving it to the database.
How do I go about implementing an IUserType for
In the mapping file, I have declared the column as BinaryBlob. I am
not sure if the EncryptedString could be used directly.
On Oct 13, 3:34 pm, Tuna Toksoz tehl...@gmail.com wrote:
It is basically the same?
Tuna Toksöz
Eternal sunshine of the open source mind.
We have a feature started but there isn't a real request to end it.
EntityMode.Xml.
The query language is HQL or Criteria.
2009/10/13 Dmitiry Nagirnyak dna...@gmail.com
Hi,
Just to make sure.
NHibernate does not support file based (XML or so) database. Right?
Has anybody tried to implement
37 matches
Mail list logo