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 45513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:49:16+00:00 2026-05-10T15:49:16+00:00

I have a one to many relationship between two tables. The many table contains

  • 0

I have a one to many relationship between two tables. The many table contains a clob column. The clob column looks like this in hibernate:

@CollectionOfElements(fetch = EAGER) @JoinTable(name = NOTE_JOIN_TABLE, joinColumns = @JoinColumn(name = 'note')) @Column(name = 'substitution') @IndexColumn(name = 'listIndex', base = 0) @Lob private List<String> substitutions; 

So basically I may have a Note with some subsitutions, say 'foo' and 'fizzbuzz'. So in my main table I could have a Note with id 4 and in my NOTE_JOIN_TABLE I would have two rows, 'foo' and 'fizzbuzz' that both have a relationship to the Note.

However, when one of these is inserted into the DB the larger substitution values are cropped to be as long as the shortest. So in this case I would have 'foo' and 'fiz' in the DB instead of 'foo' and 'fizzbuzz'.

Do you have any idea why this is happening? I have checked and confirmed they aren’t being cropped anywhere in our code, it’s defintely hibernate.

  • 1 1 Answer
  • 3 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. 2026-05-10T15:49:17+00:00Added an answer on May 10, 2026 at 3:49 pm

    Many JDBC drivers, early versions of Oracle in particular, have problems while inserting LOBs. Did you make sure that the query Hibernate fires, with the same parameters bound works successfully in your JDBC driver?

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

Sidebar

Ask A Question

Stats

  • Questions 246k
  • Answers 246k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Works for me in Safari 4 on Mac OS X.… May 13, 2026 at 8:22 am
  • Editorial Team
    Editorial Team added an answer It's tf diff /shelveset:<set> /format:unified. However, note that unlike most… May 13, 2026 at 8:22 am
  • Editorial Team
    Editorial Team added an answer The function ListAnimate is what you're looking for: http://reference.wolfram.com/mathematica/ref/ListAnimate.html May 13, 2026 at 8:22 am

Related Questions

Scenario I have 3 database tables. One is for Images and the other two
I have an ADO .Net Entity Data Model for my database. In this Model
I have two tables in a one to many relationship. (products and qty break
I have two tables: TableA ( ID [int, pk], Name [string]) and TableB (ID

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.