Hi,
I am using table per subclass where I have defined a discriminator on
one of the cols. There are 14 distinct discriminator values, however I
have created only 2 sub classes. The remaining 12 discriminators i do
not want to load.
However when i access an object with a discriminator value I get
Hi,
I would like to fire the following SQL query through NH.
SELECT , , , , , ,
FROM T1 q, T2 k
WHERE ( like 'abc' or like 'xyz')
GROUP BY , , , , , , , <>
HAVING count() >= 2
UNION
SELECT , , , , , ,
FROM T1 q, T2 k
WHERE (( like 'abc%' and <> 'xyz') or ( like 'abc
%' and <> ''))
GROUP BY ,
h one is it that you want? Do you have a base class and a
> subclass, or do you have a parent class which owns objects of another,
> children, class?
>
> /Oskar
>
> 2010/2/2 Mind Works :
>
> > Thanks for the reply.
>
> > Is there a way to circumvent this. In th
The strategy you are talking about is: Table-per-class
> For sure when you delete a subclass the delete will happen in the subclass
> and in all its superclass because what you are deleting is an object
> instance where the state is spanned between more than one table.
>
> 2010/2/2 Mind W
Hi,
We have modeled the relationship between domain objects using the
table per subclass hierarchy structure.
The structure looks like:
Parent:
SEQ01T
The relationship has been mapped as follows:
The delete cascade works as desired,
Hi,
We have very recently introduced NH in our product and are in the
process of modularizing our product - the communication between two
modules would be through services - In this process of restructuring
we have not touched the table defenitions - as we have to support the
old structure witho
Session will be aware of who created it??
Thanks & Regards,
On Jun 29, 11:07 pm, Fabio Maulo wrote:
> 2009/6/29 Mind Works
>
> > 1. Is the above change to NH a valid change.
>
> No.
> The session-factory, as its name mean, is the factory of session that mean a
> sessi
Hi,
Background:
We have 1600 objects to be loaded in the session factory, thus
impacting the memory footprint of the application. In the endeavor to
reduce the memory footprint we are loading the objects dynamically
where we are destroying the existing session factory and recreating
one every tim
Hi,
Background:
We have 1600 objects to be loaded in the session factory, thus
impacting the memory footprint of the application. In the endeavor to
reduce the memory footprint we are loading the objects dynamically
where we are destroying the existing session factory and recreating
one every tim