-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problem join table - Table not found
PostPosted: Wed May 19, 2010 5:20 pm 
Newbie

Joined: Wed Jan 06, 2010 6:45 pm
Posts: 3
Hallo,
i have this class

@Entity
@Table(name = "operator")
@Inheritance(strategy = InheritanceType.JOINED)
public class Operator {

private Long id;

private Operator operatoractive;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}

...

@OneToOne(
targetEntity=it.rovell74.Operator.class,
cascade={CascadeType.PERSIST,CascadeType.MERGE},
fetch = FetchType.EAGER
)
@JoinTable(
name = "operatoractive",
joinColumns={@JoinColumn(name="idoperator")},
inverseJoinColumns={@JoinColumn(name="idoperatoractive")}
)
public Operator getOperatoractive() {
return operatoractive;
}

public void setOperatoractive(Operator operatoractive) {
this.operatoractive = operatoractive;
}

}

"operator active" is a view with two columns
- idoperator
- idoperatoractive
that are foreign keys for operator primary key


Hibernate always return the same error

>> 22:53:21,074 ERROR AssertionFailure:22 - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
>> org.hibernate.AssertionFailure: Table operatoractive not found

Can someone help me to solve this problem?

Thank you very much


Top
 Profile  
 
 Post subject: Re: Problem join table - Table not found
PostPosted: Thu Jun 10, 2010 2:11 pm 
Newbie

Joined: Thu Jun 10, 2010 10:28 am
Posts: 1
I'm having the same issue. Did you find a solution to this problem?


Top
 Profile  
 
 Post subject: Re: Problem join table - Table not found
PostPosted: Tue Jul 13, 2010 4:57 am 
Newbie

Joined: Fri Nov 30, 2007 7:23 am
Posts: 3
I get the same error: I have 1 class with 2 joined-subclasses and I try to use in the base class a <join> tag. I get a org.hibernate.AssertionFailure : Table XXX not found. I tried to put the joined-subclasses inside the <class> tag, after the <join> tag and I get a XML parser exception. Please let me know if you have any ideas to solve this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.