user questions is for the user forum.
devel list for development.
thank you
-max
I am currently working with components within an entity. I see that the
component can be a normal pojo or it can be of type dynamic-component (a
java.util.Map).
We want to map the component to a custom object(ie use a custom
PropertyAccessor like I do for the class/entity). Is there anyway that
we can do this using components? Worst case scenario is that we will
have hibernate return the map from the component property, and then
within our code convert it to our custom object.
================================
ALERT table structure
================================
alert_id
category_name
score
summary
url
timestamp
================================
Mapping file
================================
<hibernate-mapping default-access="field">
<class entity-name="AlertEdge" table="alert"
persister="org.progeeks.meta.hibernate.SimpleMetaObjectPersister">
<id name="id" column="alert_id" type="long">
<generator class="native"/>
</id>
<dynamic-component name="category">
<property name="name" column="category" type="string"
length="100" not-null="true" />
</dynamic-component>
<dynamic-component name="alert">
<property name="summary" type="string" length="255" />
<property name="score" type="double" />
<property name="url" type="string" length="100" />
<property name="timestamp" type="timestamp" not-null="true"
/>
</dynamic-component>
</class>
</hibernate-mapping>
-Matt
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel