Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
Replacement for Hibernate's deprecated Type annotation?

Upon upgrading to Hibernate 5.6.0.Final, I found that org.hibernate.annotations.Type is now deprecated. I use this annotation in many of my entities, including places where I leverage Hibernate's own NumericBooleanType:

 @Type(type = "org.hibernate.type.NumericBooleanType")
 private Boolean debug = false;

I've searched Hibernate docs (migration guides - of which the 6.0 version gives me a 404 from http://hibernate.org/orm/documentation/6.0/), Javadocs, forums, and the web to find a replacement, to no avail.

Does anyone know what I can do now in Hibernate 5.6.0 to prepare my code using the Type annotation for the transition to Hibernate 6?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Edit: the change was reverted in 5.6.3. There should no longer be any deprecation warnings.


There is nothing you can do until you upgrade to 6.0, unless sufficient people complain on this issue that they revert the change in 5.6.1 or something.

Hibernate have made the unusual decision to deprecate these annotations early, before there's any replacement.

I don't know why. The only thing it will do is make people suppress the warnings, and then forget about it when 6.0 is released and never make the change.

over 4 years ago · Santiago Trujillo Relatório

0

That's quite a logical leap that just happens to fit with your preconceived opinion. "discouraged from using" in no way implies "there is a current replacement

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda