Ok, so I'm not going to import my files into DB2 anymore, the csv files are actually 
just input values to a calc process, cant I just use this csv
jdbc driver and hibernate to map to my csv files?

-----Original Message-----
From: Travelli Stefano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 8:39 PM
To: [EMAIL PROTECTED]
Subject: R: [Hibernate] [OT] bulk importing ideas


This is much easier. Next step is to verify if one of the dialect works with this 
driver, otherwise you have to write another dialect, but this should
be simple.

-----Messaggio originale-----
Da: Butt, Dudley [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 15 ottobre 2003 20.25
A: Travelli Stefano; [EMAIL PROTECTED]
Oggetto: RE: [Hibernate] [OT] bulk importing ideas


Thanx for that, found something even easier, let me know what u think. Found a csvjdbc 
driver off sourceforge. If i have a driver, shouldn't Hibernate
see it as a database and then I can just use hibernate as normal?

-----Original Message-----
From: Travelli Stefano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 8:01 PM
To: [EMAIL PROTECTED]
Subject: R: [Hibernate] [OT] bulk importing ideas



> 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


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.


-------------------------------------------------------
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


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.


-------------------------------------------------------
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