Beginner |
|
Joined: Fri Oct 24, 2003 10:45 am Posts: 22
|
Hi guys,
Would be really grateful for any advice.
In my mappings I have a couple of dozens of constructions like this:
<bag name="reasons" cascade="all" table="reason" lazy="true">
<key column="alert_id"/>
<element column="reason_text" type="string"/>
</bag>
It means I have to have a couple of dozens of tables to store elements of value collections which is not perfect. I would rather have just one table to store all the collections.
I know that the simplest way of doing that is to use classes and declare <one-to-many> instead of <element> and use table-per-hierarchy structure for those classes.
Is there a way do implement that without having those classes?
Thanks,
Andrey
|
|