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

  • SEARCH
  • Home
  • 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 7731915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:36:01+00:00 2026-06-01T06:36:01+00:00

I have two entities // All details has been removed @Entity @Table(name = "A_TABLE_NAME")

  • 0

I have two entities // All details has been removed

@Entity
@Table(name = "A_TABLE_NAME")
public class AEntity extends ... {
 
...
@ManyToOne(fetch = FetchType.LAZY)
  private BEntity b;
...
}

@Entity
@Table(name = "B_TABLE_NAME")
public class BEntity extends ... { 
...
}

When I start tomcat server in table creation\alter time(I use code-first conception) I have error

ERROR: Unsuccessful: create table A_TABLE_NAME_B_TABLE_NAME (…)

ERROR: ORA-00972: identifier is too long

As I know ManyToOne relation can be stored as column in A_TABLE_NAME table. Why Hibernate trying to create table to store this relation(like this is ManyToMany relation) ?

  • 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-01T06:36:03+00:00Added an answer on June 1, 2026 at 6:36 am

    @ManyToOne doesn’t generate an extra table unless you specify a @JoinTable annotation, so I assume that the problem is somewhere on the details you ommited

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

Sidebar

Related Questions

I have two entities: Event and Comment. @Entity @Table(name = events) public class Event
I have two entities Room.php /** * @ORM\Table(name=room) * @ORM\Entity(repositoryClass=Ahsio\StackBundle\Repository\RoomRepository) */ class Room {
A have two entities. For example timing settings and orders. @Entity public class TimingSettings{
I have two entities: @Entity public class File ....... @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id;
I have two entities: public class Parent() { public ICollection<Child> Children { get; set;
I have two entities, User and UserPermission. The User entity contains all your normal
I have two entities with many-to-many relationship defined on them. <set name=TreasuryCodes table=ServiceProviderAccountTreasuryCode lazy=true
I have two entities event and time. The event entity has a 1 to
I have two entities A and B: A.java: ... public class A implements Serializable
I have two Entities University courses Course students i want to access all the

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.