hola... como dice el titulo mi duda es de como puedo mapear oracle en eclipse ... eh buscado en internet y tengo todo ... pero el oracle mmmm nose como asociarlo en eclipse en si...
Código HTML:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<!--========== Spring Data Source ==========-->
<!-- En este bean se establecen los parametros para la conexión a la base. -->
<bean id="dataSourceProyecto01" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@lxoradesa:1521:DAAO6</value>
</property>
<property name="username">
<value>usuario</value>
</property>
<property name="password">
<value>password</value>
</property>
</bean>
<!--========== Hibernate SessionFactory ==========-->
<!-- Este objeto de Hibernate maneja las sesiones que ejecutan las distintas transacciones a la base de datos. -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSourceProyecto01" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<property name="mappingResources">
<list>
<!-- Agregar los mappings necesarios -->
<value>direccion/Ejemplo.hbm.xml</value>
</list>
</property>
</bean>
<!-- Inserte los bean aqui -->
<bean>
</bean>
</beans>
En esta parte solo me confunde el URL como la obtengo?
Código PHP:
<bean id="dataSourceProyecto01" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@ejemplo</value>
</property>
<property name="username">
<value>usuario</value>
</property>
<property name="password">
<value>password</value>
</property>
</bean>