Bug 134 : "Type for discriminator value [] was not found" error
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.0.2
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
04/08/2009
Updated 
04/08/2009
Type 
Bug
 
Attachments 
No attachments

Robert,

I think I found a bug.

I have the following model:

public class A {

}

public class B extends A {

}

public class C {

@Column(nullable = true)
@ManyToOne(optional = true)
private B parent;
}

If an instance of class C get persisted with no parent (parent is null) then the next time the DB tries to startup it throws a "Type for discriminator value [] was not found" error. Since the parent is null, so is its discriminator value. There is no class to discriminate.

Thanks

 
Rob 04 Aug 10:00
Yes, a check for null discriminator is missing

When creating the reference to a inheritance hierarchy.

Rob 04 Aug 10:04
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file