HHH000270: Type registration [java.util.UUID] overrides previous

Viewed 1112

In an Hibernate 5 project, I’m getting the following warning during startup:

[org.hibernate.type.BasicTypeRegistry] HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@53ec41aa

What causes this, and how can I avoid it?

The application is running fine; however, I wish to reduce the amount of messages, especially warning-like ones, that an application (even at INFO loglevel) throws at normal startup.

2 Answers

I had the same issue, there no errors, the process just stopped there. This happens when some process is currently using the database, when you try to regenerate the tables.

So basically just kill your application

I think this is just an informational statement to let you Hibernate has changed how it maps objects. You probably don't need to worry about it, but you could configure the hibernate logging level to WARN or higher to prevent it, but, personally, I think logging everything at INFO level or higher is a good idea.

log4j.xml:

<logger name="org.hibernate">
    <level value="warn"/>
</logger>  
Related