jpa hibernate ORA-00942 table or view does not exist

When jpa or hibernate connects to the oracle database, if it prompts ORA-00942 that the table or view does not exist, if it is confirmed that the table name is OK. It may be because the entity class annotation is not configured with a schema, and the normal connection can be achieved by referring to the following.

@Entity

@Table(name="xxx",schema="XX")

public class Entity {

 

}

Where XXX is the table name, XX is the user name to which the database table belongs

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326165940&siteId=291194637