[Hibernate-devel] The beauty of multiple tables in polymorphic persistency?

2002-07-15 Thread Roman Seidl
Hi!

I´ve been thinking of extending Hibernate to allow for a seperate table 
for subclasses. I allready developed a test case when i was on holliday 
last week. I would extend the mapping file with a possible table 
property in the subclass element that would allow the additional 
properties of this class to be mapped to another table.

Is it a performance benefit to map to multiple tables? If not it might 
be useless anyway - might depend on the database...

cheers
roman


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate-devel] map generator (cirrus.hibernate.tools.MapGenerator)

2002-07-15 Thread Warwick Boote



As there doesn't seem to be a hibernate-user list, 
i'm going to post this here. =)
 
I'm trying to recreate the mapping xml for the 
cirrus.test.Simple class but can't get it to work.  Here is what i'm doing 
:
 
usage: class.name | uid= | done? 
cirrus.hibernate.test.SimpleaddClass(cirrus.hibernate.test.Simple)? 
uid=countniceKey(count)=> count uid UID id ID key KEY pk PK count uid UID 
id ID key KEY pk PK? done
 
 
I guess i'm doing somthing wrong with the uid=X 
.
 
 
Little Help?
 
 
 
thanks,
 
Waz.
=)
 
 


Re: [Hibernate-devel] map generator (cirrus.hibernate.tools.MapGenerator)

2002-07-15 Thread Eric Everman
Gavin-

Could you include the patch mentioned here in the next release?

https://sourceforge.net/forum/message.php?msg_id=1616327

The patch just adds an 'exists' check to prevent NPEs in my code block in 
MappingByReflection.

Thanks,

Eric Everman

At 09:48 AM 7/15/2002, you wrote:

> As there doesn't seem to be a hibernate-user list, i'm going to post
> this here. =)
Actually theres an active user forum on the sourceforge project page :)

>I'm trying to recreate the mapping xml for the cirrus.test.Simple class 
but >can't get it to work. Here is what i'm doing :
>
>I guess i'm doing somthing wrong with the uid=X .

Apparently ReflectedProperty.isUidOK() decides to ignore properties that 
aren't long, Long or String. I guess this is sort of justified by the fact 
that all of Hibernate's built-in id generators return either Long or 
String but I will change it anyway.

Thanks for reporting this problem.

Gavin
--- This sf.net email 
is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf 
___ Hibernate-devel mailing 
list [EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate-devel] JBoss MBean

2002-07-15 Thread Urberg, John
>> Now as for this issue of the MBean needing classpath to the persistent
classes, am I right in assuming that no management calls to the MBean would
ever be able to see the application classpath? <<

I believe that is the case.  My (limited) understanding is that anything in
an EJB jar gets its own class path and class loader seperate from the rest
of the server and other EJBs.

>> If so, is a possible solution to create a new implentation of the
SessionFactory interface that creates a datastore and builds a
SessionFactory when first invoked by the application ... and then forwards
requests to the actual SessionFactory implementation? <<

Only if everything is in one big EJB jar file.  If they are split between
seperate EJB jar files, then there is still a problem.

If one was to put mappings in seperate files for each class (like the
eg/Foo.hbm.xml and eg/Bar.hbm.xml example in the docs), you could wait to
load the mapping for a class until the class was first accessed.  That might
fix the problem.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel