Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8814613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:10:18+00:00 2026-06-14T04:10:18+00:00

Accoriding to hibernate document: section 6.5. Type registry : http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html We can create a

  • 0

Accoriding to hibernate document: section 6.5. Type registry:
http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html

We can create a new user type and override existing hibernate’s basic types. To use the new user type we need to register it using (see above link):

Configuration cfg = ...;
cfg.registerTypeOverride( new SuperDuperStringType() );

But never in document mentioned how we can register it in hibernate.cfg.xml? I can’t believe they forgot to add this to hibernate.cfg.xml, Does anybody know about this?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:10:19+00:00Added an answer on June 14, 2026 at 4:10 am

    Take a look at that post: Mapping A Custom Type In Hibernate

    It worked for me with the following little modification:

    the hibernate-mapping closing tag is wrongly formed, it misses the / (slash).

    Appart from that, it explains everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make work the example from hibernate reference. I've got simple table
Say I have a Page entity which can have an array of associated Document
Hibernate can auto-generate schemas from properly annotated POJO classes. And I also know that
According to this section of the Hibernate documentation I should be able to query
I'm using Hibernate for ORM of my Java app to an Oracle database (not
How can I set a Hibernate Parameter to null? Example: Query query = getSession().createQuery(from
I have a simple class like this, import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Length; public class Form
According to Hibernate documentation : After observing that arrays cannot be lazy , you
According to my previous question integration of jsf2.0 and spring 3.1 and hibernate 4.1
Accoriding to javadoc, public class AtomicInteger extends Number implements java.io.Serializable { // code for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.