On Apr 14, 7:32 pm, cws cw.stenb...@gmail.com wrote:
Hi!
Wouldn't you use resources for that?
so far i thought resources are only for translations of messages
within the code.
Do you have a code sample?
On 14 Apr, 14:14, Michal mga...@gmail.com wrote:
Hello all,
I am completely new
Because one of our classes become too big with nearly 100 properties,
we must split it to 5 smaller classes (and inturn, 5 different tables)
to save performance. But now if I wanna access the base object from
part object, it is null. Here is the code:
namespace beans
{
public class City
Sorry, I didn't post the problem: The application throw A
NullException when it run to this command
city.Resources.City.SomeProperty
(city.Resources.City = null)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
@Michal,
People here are usually not paid to write documents, write code even for NH
or blog posts etc. As any OSS, this is a community effort. People will try
to help you, or provide you guidance, but they won't implement your project
and off you go. You need to do your own research and spikes,
nobody had the same problem?
On 9 Apr., 09:49, Stefan Steinegger stefan@bluewin.ch wrote:
We are trying to lock an instance in the database to make sure that is
does not change. But only the inherited class is locked, so we are not
locking the base class.
pseudo code:
class Base {
On Tue, Apr 14, 2009 at 7:54 PM, cws cw.stenb...@gmail.com wrote:
In order to write some test for this:
- If I got it correct
this .IntegrateWithNHibernate.ApplyingDDLConstraints will apply
constraints like notnull, length and even unique,index, unique-key?
- Two listeners will be attached
2009/4/15 Michal mga...@gmail.com
could we see some code?
Sure. We can make a deal in private.
--
Fabio Maulo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
nhusers group.
To post to this group, send email to
2009/4/15 Fregas fre...@gmail.com
what would be the proper way to force nhibernate to do an insert on
every save?
Flush or you can better try Persist method (don't go to DB is you don't
really need it).
If your case is a special bulk operation you should use StatelessSession.
Also, is
Hi all,
I was wondering if it is possible and wise to use SysCache in a WPF
Application.
NHibernate in Action is warning not to do so: This provider should
only be used with ASP.NET Web Applications.
Nevertheless, from these posts I gather that it should be possible to
do so:
why dont you try this:
http://www.sharedcache.com/cms/
2009/4/15 ronald ronald.ploe...@bertelsmann.de
Hi all,
I was wondering if it is possible and wise to use SysCache in a WPF
Application.
NHibernate in Action is warning not to do so: This provider should
only be used with ASP.NET
All,
I'm trying create a snapshot of a rapidly changing table so this can
be paged through. I don't really want to do it in stored procedures as
I'm trying to keep some database neutrality therefore would like to
keep it all in NHibernate (though simple ANSI-SQL is acceptable).
I'm using SQL
Why do you want human readable keys?
On Wed, Apr 15, 2009 at 12:53 PM, caiokf cai...@gmail.com wrote:
Hi,
Which approach do you guys suggest to handle Primary Keys in an
occasionally connected system?
In my understanding, the options are:
- GUIDs/UUIDs : which present a non-human
One scenario:
A user post an order, and receives as a confirmation, an order number
(which must be unique and so, it's my primary key).
It would be akward to see something like:
Your order is: 3F2504E0-4F89-11D3-9A0C-0305E82C3301
On Wed, Apr 15, 2009 at 1:56 PM, Greg Young
Thsoe types of numbers are not generally created assigned in an
occasionally connected system ... maybe I am misunderstanding you ...
generally they receive an id when they reach a central system.
On Wed, Apr 15, 2009 at 1:00 PM, Caio Kinzel Filho cai...@gmail.com wrote:
One scenario:
A user
Assuming this is all so you can be occasionally connected and still
generate an id
do id checkouts ... say each occasionally connected client has 1000
ids and when they run out they check out new ones ...
use things with enough randomness ... using letters helps with
representing these ... you
no hilo and that are two different methods ... but you could pretty
easily put them together ...
hilo generates a base 2 number (usually displayed as a base 10 number)
just make it base 36
Cheers,
Greg
On Wed, Apr 15, 2009 at 1:37 PM, Caio Kinzel Filho cai...@gmail.com wrote:
Is there
Hm... I see...
Thanks for the idea.
On Wed, Apr 15, 2009 at 2:41 PM, Greg Young gregoryyou...@gmail.com wrote:
no hilo and that are two different methods ... but you could pretty
easily put them together ...
hilo generates a base 2 number (usually displayed as a base 10 number)
just make
What i'm trying to do is make it so that it will always do an insert,
NOT an update even if the object was already retrieved from the db.
This is for logging/auditing.
Flush or you can better try Persist method (don't go to DB is you don't
really need it).
If your case is a special bulk
I don't see an insert on an ISession?
On Apr 15, 2:34 pm, Stefan Steinegger stefan@bluewin.ch wrote:
Use session.Insert to make sure that NH performs an insert. You'll get
an exception if the record would already exist. An Insert with every
save: you should create a new instance in memory
There's save, saveorupdate but no insert.
On Apr 15, 2:38 pm, Fregas fre...@gmail.com wrote:
I don't see an insert on an ISession?
On Apr 15, 2:34 pm, Stefan Steinegger stefan@bluewin.ch wrote:
Use session.Insert to make sure that NH performs an insert. You'll get
an exception if the
I'm rephrasing this question because I'm not sure I'm expressing this
correctly.
I have a rather large object hierarchy with collections, dictionaries,
many-to-one relationships, etc. When i get this hierarchy out of the
db using session.get() and make modifications, when I send this back
to
I have a rather large object hierarchy with collections, dictionaries,
many-to-one relationships, etc. When i get this hierarchy out of the
db using session.get()
if you are using get() with this complex graph you are executing alot
of queries. If you know you will be editing the object, use
I'd like every object re-inserted (not updated) as new records. This is
for logging/auditing purposes.
I think you have to do this using event listeners to do this. if you
have the option i would highly recommend storing the audit in a
separate table. it makes working with the domain
I have created a customer class validator and it works OK. Using third-
party software, it validates a postal address. This address validator
uses Address, City, State and Zip properties.
Instead of having the validator message associated with the class, I
would like to have it associated with
Hi
Right now I think you can't do that, for that matter, but I have something
in mind. Will review this later.
Maybe you can workaround this using the NHV1.2(alpha but stable) doing
something like this:
${PropertyWithMessage}
And your class has a property *PropertyWithMessage* as string. I
You could also consider constructing your own unique identifier, e.g.
a sequence number combined with an idenfitier of your operator.
There's some good arguments to try and avoid using the database as the
source of unique identifiers.
You also might not need to have this identifier as the
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
Greg,
So in your scenario, do you keep the PK as GUID and use another column for
the application Id checkout?
Jean-François
On Wed, Apr 15, 2009 at 11:18 AM, Greg Young gregoryyou...@gmail.comwrote:
Assuming this is all so you can be occasionally connected and still
generate an id
do id
Does NHibernate officially support mono?
--~--~-~--~~~---~--~~
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
Take a look to StatelessSession, there us the Insert.
2009/4/15 Fregas fre...@gmail.com
There's save, saveorupdate but no insert.
On Apr 15, 2:38 pm, Fregas fre...@gmail.com wrote:
I don't see an insert on an ISession?
On Apr 15, 2:34 pm, Stefan Steinegger stefan@bluewin.ch wrote:
IMO you should use a OrderdConfirmationNumberGenerator for the need of your
business maintaining the PK as a no-business-meaning
POID.OrderdConfirmationNumberGenerator may
be a GUID, a progressive number (generated from some table using pessimistic
lock), a combination of various data (timestamp,
session.Replicate
2009/4/15 Fregas fre...@gmail.com
I'm rephrasing this question because I'm not sure I'm expressing this
correctly.
I have a rather large object hierarchy with collections, dictionaries,
many-to-one relationships, etc. When i get this hierarchy out of the
db using
Officialy, there isn't a committer in charge of this matter. Nobody is
taking care about compatibilities issues, in case they exists.
Unofficialy, I think there are companies working with NH+Mono
http://nhforge.org/wikis/successstories/success-stories.aspx
On Wed, Apr 15, 2009 at 6:28 PM, Andrew
33 matches
Mail list logo