????????2??????????????С???myprojectcore arget???£????schema.sql???????????????????????sqlplus??????????sql???????????
?????????????????????sql??????sqlplus??е??????2.??hibernate??е??hibernate???sql????????????ж??????????“??”???????????????????appfuse-3.5.0.pom?е?oracle profile?????????????????????????ó???
????<hibernate.export.schema.delimiter></hibernate.export.schema.delimiter>
?????????????????
????????3?????????????????????????????
????Tests run: 9?? Failures: 0?? Errors: 1?? Skipped: 0?? Time elapsed: 2.167 sec <<< FAILURE!
????testUpdateUser(com.exam.dao.UserDaoTest)  Time elapsed: 0.088 sec  <<< ERROR!
????java.lang.Exception: Unexpected exception?? expected<org.springframework.dao.DataIntegrityViolationException> but was<org.springframework.orm.hibernate4.HibernateSystemException>
????????????????????AppFuse??????б??У??????????????????????????????????ε???????????????????????
????????????????????UserDaoTest.java???68?У?//user2.setRoles(user.getRoles());
????user2.setLastName(user.getLastName());
????user2.setPassword(user.getPassword());
????user2.setPasswordHint(user.getPasswordHint());
????//user2.setRoles(user.getRoles());
????user2.setUsername(user.getUsername());
????user2.setWebsite(user.getWebsite());
?????????????????oracle profile?????????????????????jar????war????
?????????????oracle?????profile(appfuse-3.5.0.pom)???????????????????????????myproject?????pom.xml.
<properties>
...????????
<!-- ?????oracle??????????????????????Щ??????????????mysql????? -->
<dbunit.dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName>
<dbunit.schema>MYPROJECT</dbunit.schema>
<hibernate.dialect>org.hibernate.dialect.Oracle10gDialect</hibernate.dialect>
<jdbc.groupId>com.oracle</jdbc.groupId>
<jdbc.artifactId>ojdbc6</jdbc.artifactId>
<jdbc.version>11.2.0</jdbc.version>
<jdbc.driverClassName>oracle.jdbc.OracleDriver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:oracle:thin:@localhost:1521:Orcl]]></jdbc.url>
<jdbc.username>myproject</jdbc.username>
<jdbc.password>myproject</jdbc.password>
<jdbc.validationQuery><![CDATA[SELECT 1 + 1 from DUAL]]></jdbc.validationQuery>
</properties>