Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Object Relational Mapping
connecting to Excel sheet through hibernate
yekkala krishna
Ranch Hand
Posts: 105
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Could we connect to excel sheet via hibernate.
i am getting below exception when connceting to excel sheet via hiberante
java.sql.SQLException: [Microsoft][ODBC Excel Driver]Optional feature not implemented sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) sun.jdbc.odbc.JdbcOdbc.SQLSetConnectOption(Unknown Source) sun.jdbc.odbc.JdbcOdbcConnection.setAutoCommit(Unknown Source) org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:135)
my hibernate.cfg.xml
<hibernate-configuration> <session-factory> <property name="connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property> <property name="connection.url"> jdbc:odbc:exceldsn</property> <property name="connection.username"></property> <property name="connection.password"></property> <property name="connection.pool_size">1</property> <property name="dialect"> org.hibernate.dialect.MySQLDialect</property> <property name="current_session_context_class">thread</property> <property name="cache.provider_class"> org.hibernate.cache.NoCacheProvider </property> <property name="show_sql">true</property> <!-- <property name="hbm2ddl.auto">update</property>--> <property name = "hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> <mapping class="com.veera.struts2.model.Contact" /> </session-factory> </hibernate-configuration>
could anybody suggest me.
How can i solve this issue?
Regards,
Rama
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Not something you can do. Hibernate is designed to work with relational data sources. Excel is not a relational data source, so Hibernate is not an appropriate tool to be using. Have you looked at
Apache POI
?
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Eclispe + Hibernate + DB2 version 9
Hibernate Dialect for MS Access
Hibernate and MySQL connection issues
Hibernate 2.1 and Oracle 9.2.0.4 connection
Hibernate Maping error
More...