What is wrong with embracing the orm you are using, nobody has issues with
embracing ef context's in their code, so why would we like to abstract
nhibernate's session ?
Is is repository, unit of work all in one
--
You received this message because you are subscribed to the Google Groups
"nhuse
Should be the most correct answer
Regards
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/zdqhK0d0D30J.
To post to this group, send email to nhusers@googlegroups.co
What is the transaction isolation level you are using ?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/vbojgazSWUkJ.
To post to this group, send email to nhusers@goo
Although you could try to use natural-id ( caching consequence) I
think unique-key is the one you are looking for see
http://www.benday.com/2006/04/02/howto-create-a-unique-constraint-using-nhibernate/
for more info
On 29 mei, 22:45, Ricardo Peres wrote:
> natural-id is used for creating unique i
Hi
For the attachment group document you want to remove set the
attachment group property to null before using flush or transaction
commit. For more info check the documentation concerning bidirectional
associations.
Regards
On 24 mrt, 04:59, Kolli Ayyappa wrote:
> Hi,
>
> I have main table hav
Hey,
When trying to create a failing bugtest for NH-2772, i stumbled upon a
TypeLoadException thrown when the organization class has a lazy="true"
property name, if you set it to lazy=false, everything seems to work
perfectly.
See https://github.com/tommarien/nhibernate-core/tree/NH2772 for test
Globally accepted or something :)
--
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...@googlegroups.com.
For more options, vi
It think this might be related to https://nhibernate.jira.com/browse/NH-2772
--
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+unsubsc
As for the lazy properties path see
http://ayende.com/blog/4377/nhibernate-new-feature-lazy-properties
"One last word of caution, this feature is implemented via property
interception (and not field interception, like in Hibernate). That was
a conscious decision, because we didn’t want to add a b
proxyvalidator will give you errors when trying to compile mappings
for not an auto property !!!, so the test you supplied is very very
strange
I think we need a clearer example before we can understand what is
going on.
Nexus
--
You received this message because you are subscribed to the Google
This seems to be a bug, please submit to jira , perhaps include unit
test for it see nhforge for the correct way to do so
--
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 fr
Have you supplied ansistring as type in the mapping ?
--
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...@googlegroups.com.
Maybe you forgot to add collection cache ? Post your mappings and
session configuration, because if you forget to add collection-cache
in nhibernate config or under bag xml attribute you only have entity
cache.
--
You received this message because you are subscribed to the Google Groups
"nhusers
Don't forget to try and contribute to the burrow community by
supplying a patch or contacting fabio maulo, see other users may use
your changes :)
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhusers@googlegrou
Take source of burrow and try to fix the reference to nhibernate
--
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...@googleg
Apparantly the owner of the burrow project is no longer maintaining
it, and according to blog he has gone ruby (kailuowang)
--
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
Enable full logging and see what gets send to the database or use
nhibernate profiler
--
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
nhuser
Jack,
Why are you using oledbprovider on sqlserver ?
--
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...@googlegroups.com.
I have had pretty decent results with memcache in the past, why don't
you use that one ?
--
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
nhu
Maybe related to
http://www.basderaad.nl/2011/02/large-strings-in-nhibernate-3-0/
?
--
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
As i crawled trough JIRA to find the related bugs, i stumbled upon
this comment
Tomer Avissar commented on NH-1001 (Select statement issued for each
not-found=ignore) saying:
It's been a while since I logged this, but if I recall correctly, the
issue is if you like to view it that way, is that the
Again i really think that getting the id of the parent should not
trigger lazy load, as confirmed in BasicLazyInitializer Code :
public virtual object Invoke(MethodInfo method, object[] args, object
proxy)
{
string methodName = method.Name;
As taken from nhibernate documentation, i don't many to many needs
cascading, because there is no real object to cascade to
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhusers@g
Jason,
Why should the second trigger lazy loading, besides from the fact if
you use not-found=ignore or property-ref attribute ?
--
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 unsubs
Shatl,
Yes, he means private setters only, private setters are not
interceptable as i know off
--
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
Try expanding the key and many-to-manu tags like this
Could be there :)
--
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
Why don't you test it integrated, with a database, or SQLite of you
prefer ?
Seems easier
--
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
n
As far as i know, it isn't possible using ICriteria, QueryOver etc
queries, but i'm sure that HQL Supports it (look for quering map
trough hql)
for example:
FROM Person p
WHERE p.Attributes['SSN'] is null
Kind regards
--
You received this message because you are subscribed to the Google Grou
Why are you using _orderModel.SaveCustomerOrder(customerOrder); ???
isn't a flush sufficient ?
--
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, send email
Roy,
QueryOver is just a wrapper over existing ICriteria Queries, if i
remember correctly the above would also fail in a simple criteria
query.
Regards
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhus...@goo
Christian,
Please look at the localization techniques described in
http://nhforge.org/wikis/howtonh/localization-techniques.aspx.
Kind regards
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhus...@googlegroups
Mike
Just looked into source of nhibernate, i guess not because still
standing
NotExpression
{
...
public override IProjection[] GetProjections()
{
return null;
}
}
Regards
--
You received this message because you are subscribed to the
rride IProjection[] GetProjections()
{
return criterion != null ? criterion.GetProjections() :
null;
}
}
This is also a problem with And/or etc
Kind regards
Nexus
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
Hey,
Don't you mean
--
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, send email to
nhusers+unsubscr...@googlegroups.com.
For more o
SOA and DDD mix very well if you implement CQRS :)
Kind regards
--
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, send email to
nhusers+unsubscr...@googleg
en you add something (because the holder of the foreign
key is the weblog entity).
Kind regards
Nexus
--
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
Hi,
Why are you calling session.update(user) in the first example
And its's normal that the user is loaded don't use load use get, the
only difference between lazy is extra or lazy = true is related to the
collection of Weblogs
Kind regards
--
You received this message because you are subscrib
Hi,
If the Entity has a composite key mapping you still should be able to
use Projection.Id()
Regards
--
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, sen
Session.Contains() i thought it existed
Regards
--
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, send email to
nhusers+unsubscr...@googlegroups.com.
For m
Dave,
Row, table or page locking is triggered by the database itself, mostly
it's related to using unindexed columns to select the row
Regards
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhus...@googlegroups
Chris
Please take a look at following blog article, should answer your
question :)
http://nhforge.org/blogs/nhibernate/archive/2009/03/11/nhibernate-and-ms-sql-server-2008-date-time-datetime2-and-datetimeoffset.aspx
Kind regards
--
You received this message because you are subscribed to the Go
n = @p0, Data = @p1
> WHERE Id = @p2; @p0= '83a6dcb8-e67d-4df2-b532-ea54c87dbb96', @p1 =
> 'System.Byte[]', @p2 = '1'
>
> Thanks a lot for your help.
>
>
>
> On Wed, Sep 29, 2010 at 5:10 PM, Nexus wrote:
> > Euh i hope you are have an entity(class mappin
Start by mapping a formula property (Total) into sales
Then you can sum in projections (otherwise you have to revert to bad
SqlExpression stuff)
On 18 sep, 23:00, Xminder wrote:
> How do I write the below with ICriteria and Projections.Sum:
>
> Select item_name, sum(unit_price * amount)
Switch has a default:(switch) which is used for otherwise so if not
IMS or TPF what then ???
On 26 sep, 14:56, Diego Mijelshon wrote:
> That's a C# error, not
> NH.http://msdn.microsoft.com/en-us/library/06tc147t(v=VS.100).aspx
>
> Diego
>
>
>
> On Sun, Sep 26, 2010 at 04:39, adherence wrot
> snapshot is taken after update the varbinary field from 3 bytes to
> 2MB. As you can see, the most expensive operation is
> SqlCommand.ExecuteNonQuery. However, the same ExecuteNonQuery in raw
> sql takes less than a second.
>
>
>
> On Tue, Sep 28, 2010 at 10:59 AM, N
Juanma,
As a general advice don't update blobs think of them as
ValueObjects(DDD). Try removing the binarydocument reference (3bytes
version) and adding another (8MB version), should improve speed
drasticly due to dirty check
--
You received this message because you are subscribed to the Google
Brain,
Which version of Client Access are you using ? V5R4 or V6R1 ??
Kind regards
--
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, send email to
nhusers
Thanks for the update :), i personally don't trust anything with
foo(fu) or bar in it :P
--
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, send email to
nhu
Hi,
Without questioning the implementation ;), it has nothing to do with
proxying as the proxy should have loaded all values as a result from
"Assert.AreEqual("A", obj.PrivateSetter) "
Or is it caused by the private set {} itself ?? (What is the mapping
here nosetter.camelcase ???), could be tha
You know you make me wanna (Shout!)
Kick my heels up and (Shout!)
Throw my hands up and (Shout!)
Throw my head back and (Shout!)
Come on now
Don't forget to say you will
Don't forget to say
Yeah, yeah, yeah
(Say you will)
Say it right now, baby
(Say you will)
Well, come on, come on
(Say you will)
S
Mmm, strange, never thought nhibernate supported something not :P !!!
I thought i saw something about multiquery on Ayende (Rahien) blog
about unions ??? maybe a tip in the right directions
KR
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post
Just as a remark, you should do it in T-SQL also :P, so why not in HQL
--
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, send email to
nhusers+unsubscr...@g
Try this
select cat, count(elements(co))
from Category cat left join cat.Courses co
where cat.ParentCategory is null
and (co.Visible=true or co.Visible is
null) and (co.Active=true or co.Active is null)
Change :
public virtual Guid Id { get; set; }
==>
public virtual string Id { get; set; }
And you should be fine
--
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 th
Why do you do a flush after a rollback , not that i really matters but
still is appears strange to me !!
_folderDAO.RollbackTransaction(); invokes
Transaction.RollBack()
Session.Flush()
Session.Close()
Also call Session.Flush() after saving each folder should fix entire
te
Refreshing your contracter, or evicting it from the session should do
the trick
--
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, send email to
nhusers+unsu
Easy answer, don't :)
Nhibernate has enough tests running and succeeding on CriteriaQueries,
mock your repositories or dao's .
Otherwise do your tests against a db, as these are integration tests
Kind regards,
--
You received this message because you are subscribed to the Google Groups
"nhuse
Show us the money, euh , mapping :P
--
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, send email to
nhusers+unsubscr...@googlegroups.com.
For more options,
As a side note , or even a question that popped up to talking with a
dba on this :
I understand these sort of patterns if you want to dump your resource
files in a database, but the underlying question is it really that
important and frequent that an application should be able to add an
additional
Show us some code please, this isn't the way it is supposed to work !
This should trigger twice "select max(id) from entity table"
--
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 unsub
I personally don't like long conversations as they tend to cover the
real issues with web development and that is following
So you select a customer in a long conversation, you retrieve its
details, page get transmitted to client, user goes to toilet,
meanwhile customer gets removed (updated), and
The most important question to answer is whether or not a book can
become a dvd, in other words do you have need for type mutability ???
If the answer is no, which i think it is, you can use a discriminator,
to map it to different type, see nhibernate manual
Kind regard
Tom Marien
--
You recei
2.1.x is no more supported, the next version will be NH3.0 (actual
trunk) ???
Is there a release yet of 3.0 ? Or is one planned ?
If the answer to above is no-no then 2.1.x should be supported, just
my oppinion :P
--
You received this message because you are subscribed to the Google Groups
"n
Please, just point me in the right direction, if someone says from
which codebase to start from i can even supply a patch !!!
--
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 unsubscrib
Do i need to file a bug in JIRA ???
--
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, send email to
nhusers+unsubscr...@googlegroups.com.
For more options,
eed to get this fixed
So for a not expression it is easy i just return nested
criterions.projections
But what must i do for Or,And,Junction,Disjunction etc should it
return a new IProjection[] with left and right projections ???
On 3 mrt, 12:52, Nexus wrote:
> As an update on this it seems tha
work for some reason when i strip not it works
Please advice
On 2 mrt, 13:28, Nexus wrote:
> Hi
>
> I am using 2.1.2 GA, when i try to use a
> Add(Restrictions.Gt(IProjection projection,0) ||
> Restrictions.Gt(IProjection projection,0) )
>
> It is no longer using having c
An update on this :
if i use Projections.SqlProjection("0 as dummyF", new[] { "dummyF" },
new[] { NHibernateUtil.Boolean }) i can get it to work property , if i
can just figure out how to make Projections.Constant like projection
for instance ValueProjection that doesn't make use of parameters but
Hi
To be clear a valueobject can have a persistence identifier, it just
means that the persistence id has no meaning
--
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 t
Paul
I am a developer who is keen on DDD, so post is your aggregate root
and comment is a value object or another entity ?
So post has a one-to-many relationship with comment(which seems to be
a value object at first glance btw) , this means according to DDD
rules comments should only be availabl
As a general guideline don't expose your domain(poco or not) model
trough wcf, use screen bound dto's (see
http://blog.jpboodhoo.com/CommentView,guid,21fe23e7-e42c-48d8-8871-86e65bcc9a50.aspx)
On 3 feb, 08:13, Peter Derwa wrote:
> Hi Allan, I don't want to remove the lazy loading, i want to overw
Hi,
This can be formulated as SELECT N+1 issue (see
http://ayende.com/Blog/archive/2008/12/01/solving-the-select-n1-problem.aspx)
But this link is not a fix for your particular situation, you were
stating that you are working with a legacy database model, so i guess
adapting the schema a little is
>
> 2010/2/2 Nexus
>
>
>
> > Hi
>
> > When we use Projection.Conditional(Projection ..., true part , false
> > part), where the true and false parts are Projections.Constant
> > (true),Projections.Constant(false)
>
> > We get an error, because DB2
Hi
When we use Projection.Conditional(Projection ..., true part , false
part), where the true and false parts are Projections.Constant
(true),Projections.Constant(false)
We get an error, because DB2400 cannot have a "case when " structure
where both the true as the false part are parameters
Do
Hi
Look at Spring.Net, they wrap them in a robust manner :)
On 22 jan, 16:15, lg wrote:
> Hi
> Trying to write a rubust application based on NHibernate. When you do
> a operation like
>
> session.save(item)
>
> a number of exception can be thrown from the framework.
>
> I think that it is a bad
Try using paging instead of loading 20 rows into a grid, it makes
me suspect that your are reworking a lecagy system, where business
still needs to evolve :P
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhu
One-to-one is a legacy mapping type, don't use if you avoid.
How can nhibernate know that there is an object in table B without
joining it in the query (because it has the same identifier), lazy in
a one-to-one is not advised, one-to-one is just to split tables up
nothing more nothing less
Kind r
For that kind of data don't use winforms, binding either :P
On 26 jan, 16:29, Fabio Maulo wrote:
> I hope you will implements DataAccess "Logic"
>
> 2010/1/26 ehnn
>
>
>
> > Thanks for the responses. Based on this I will implement my own
> > business logic for dealing with this amount of records
Hi,
According to the nhibernate documentation in the source
FetchMode.Select (equals Lazy) and should
///
/// Fetch eagerly, using a separate select. Equivalent to
/// fetch="select" (and outer-join="false")
///
But this does nothing, so it is not the same as fetch="select" in your
mapping !
look at http://ayende.com/Blog/archive/2008/10/04/the-nhibernate-profiler.aspx
(NHProf)
On Oct 2, 12:47 pm, "Bruno Wouters" wrote:
> Hi all,
>
> Is there a way to measure the total time spent by the database executing
> queries etc?
>
> I would like to display the number of seconds that are spen
setting data
property to null, in the db the foreign key from filedata (table) to
file(table) will be set to null
By using delete-orphan it will be removed from the filedata table.
I do hope this is still making sense to you :P
Kind regards
Nexus
On Oct 2, 9:55 am, csetzkorn wrote:
> Let me
Hi,
This only implies on objects loaded in the session !!! Delete-orphan
deletes orphans as long as they are not referenced by any other object
in the session
Kind regards
Nexus
On Oct 1, 11:18 am, csetzkorn wrote:
> Hi,
>
> Sure that makes sense. However, I thought that NHibern
Hi,
Could it be that the flushmode of your session is on autoflush,
because then it would mean that the query that is checking the
uniqueness is calling flush !
Kind regards
Nexus
On Sep 29, 8:54 am, "Francisco A. Lozano" wrote:
> Maybe your entity is already persistent by
Hi,
I would like to abstract away from nhibernate.Criterions.ICriterion,
to prevent a leak in my upper layers, does anyone has tried to
implement/wrap its own IMyCriterion that can be resolved to an
ICriterion ???
The context of this question lies in the creation of query objects, i
would like t
David,
The problem you are facing is the difference between inverse option
and cascading options !!!
Specify inverse=true for each collection that you have a different
mapping file for, this means that when the schema gets created he
needs to investigate the underlying class for all constraints,
Don't !!, it is a breach in the versioning process
My advise extract the locking behaviour from your entity !
On 4 aug, 08:51, Peter Derwa wrote:
> Hey guys
>
> I'm using the Versioning of NHibernate to keep track of the
> versioning.
> Recently we've added the possibility to lock records w
Hi
In my humble opinion, it should not be a breach of the DDD concept to
have the id in the valueobject, it is just there for database
concerns, i has no other meaning.
It should also be included out of your equals etc, because only the
values of the valueobject matter (but i am sure that was al
in the child mapping change this
CHILD:
You have duplicate mapped once explicit see above and once implicit
see below
Greetings
On 29 jul, 15:05, Teclioness wrote:
> Hi,
>
> I have a parent child relationship tables set up. In the UI, I show
> the details of parent and child deta
Hi there,
So we are talking about entities in our domain model ? Then why not
just
public class Employee
{
int Id { get; protected set; }
string Name { get;set; }
EmployeeType Type { get;set; }
string EmployeeTypeName { get { return Type!= null ? Type.Name :
null; } }
}
If not, so
Checkout https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk
Greetings
On 30 jul, 13:05, Niclas Pehrsson wrote:
> Is there any compiled version of Rhino commons with NHibernate 2.1 ga.
> There are no compiled files on the
> sitehttp://sourceforge.net/projects/rhino-tools/files/
-
Graham,
You are both right, SQL (pre 2008) has an issue that a datetime is
only accurate up to 3.33 milliseconds
Override your dialect as follows and you should be seeing more correct
behavior, the value stored in your memory object needs to be rounded
to the milisecond
so don't forget to refresh
stalia
> Session.Update();
> Session.Flush();
> address.Country = Countries.Germany
> Session.Update();
> Session.Flush();
>
> Assert.AreSame(Countries.Germany, address.Country)
>
> Cheers.
>
> 2009/7/30 Nexus
>
>
>
>
>
> > Hey
>
> > At first set y
Hey
At first set your id to assigned, use guid or something like that.
Second overload your Equals, gethashcode, (use id as equalifier) ,
also overload operators
Then create a static class countries
public static class Countries
{
public readonly static Country Australia = new Country
("EF989
You could try this
It works but creates an index besides the primary key
Greetings
On 27 jul, 18:39, Jan Limpens wrote:
> 2009/7/27 Nexus
>
>
>
> >
> >
> >
>
> > Is is not the column="Id" ?
>
> No, not the
We are using unity as DI Container, no issues with it , use 1.2
though, with a custom written session management, that resides in di
Greetings
On 28 jul, 18:03, Raul Carlomagno wrote:
> castle has a facility to manage nhibernate's session
> spring.net has a component to manage session
>
> i thi
Try this
kind regards
On 28 jul, 03:26, Ian Escarro wrote:
> I have an error in deleting a master/detail relationship. I have a
> PurchaseOrder class and a PurchaseOrderItem class. These are the mapping.
>
>
> namespace="Bogetz.Elephant.Model" assembly
You could use projections, or maybe map the two entities by a
discriminator
greetings
On 27 jul, 11:50, Sachin wrote:
> Thanks Nexus!!
>
> I know it can be handeled in code as I can create two entities where I
> can fetch values and can create a common entity out of it, but it
Hi
1) When we use native generator, in code it will first check if the
dialect can provide identity values and then sequences, and as a
failback it uses table-hilo.
I think most people prefer the use of sequences over identities if the
database supports it.
2) Could we provide a nativehilo stra
Is is not the column="Id" ?
Kind regards
On 26 jul, 21:52, James Gregory wrote:
> AFAIK you can't set the primary key name. Foreign keys yes, primary no.
>
>
>
> On Sun, Jul 26, 2009 at 8:49 PM, Jan Limpens wrote:
> > Hi there,
>
> > for my database-objects to work (full text i
>> and i am trying to generalize InCompleteOrder/InCompleteOrderItem and
> >> CompleteOrder/CompleteOrderItem into only Order and OrderItem class. i
> >> was able to map InCompleteOrder and CompleteOrder class into something
> >> like:
>
> >> InCompOrder -
1 - 100 of 126 matches
Mail list logo