> can hibernate map persist to a csv file, not even persist, just read a csv into an 
> object?

Indeed, it seems you could:

<class
name="ClassName" 
table="tableName" 
discriminator-value="discriminator_value" 
mutable="true|false" 
schema="owner" 
proxy="ProxyInterface"
dynamic-update="true|false" 
dynamic-insert="true|false" 
polymorphism="implicit|explicit" 
where="arbitrary sql where condition" 
persister="PersisterClass" 
/>

"persister" attribute let you specify a custom persister for the class. Then you 
should build you own persister extending EntityPersister and, just for reading, 
overriding this method 

load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor 
session)

The doc says that:

"The persister attribute lets you customize the persistence strategy used for the 
class. You may, for example,
specify your own subclass of net.sf.hibernate.persister.EntityPersister or you might 
even provide a
completely new implementation of the interface 
net.sf.hibernate.persister.ClassPersister that implements
persistence via, for example, stored procedure calls, **serialization to flat files** 
or LDAP. See
net.sf.hibernate.test.CustomPersister for a simple example (of "persistence" to a 
Hashtable)."

Good luck
stefano




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to