• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate: Override @Type annotation in orm.xml

 
Davis Ford
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have the following field on an entity class:



I want to override the @Type annotation in orm.xml, but I can't seem to figure out how. For example....



Where / how do I specifiy the type??

Thanks in advance!
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In any case, you cannot do it in orm.xml because vendor extensions are not allowed there; you can only use the standard JPA mappings.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!