hibernate oracle – some entity tables not map

I’m working on a java spring mvc application that use hibernate 4.3.10 for connecting to oracle 11g database. This is a part of my persistence configuration class:

public DataSource dataSource() throws SQLException {
    BasicDataSource dataSource = new BasicDataSource();
    dataSource.setUsername("sys as sysdba");

    return dataSource;

And I used two annotations @Entity and @Table(name = "table_name", schema = "TEST") on top of each entity class. But when I run the project, some of entities not map in the database and I got table xxx not found in the log. Can anyone help me to solve this problem?

I tested this project on mysql before and everything was ok, but I have this problem in oracle database.

Source: oracle

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.