[hibernate-dev] Metamodel tests

Strong Liu stliu at hibernate.org
Sun Jul 29 13:34:54 EDT 2012


I was not aware of that, the root issue is "org.hibernate.metamodel.internal.source.annotations.attribute.Column#name" has a default empty string value.


On Jul 30, 2012, at 1:30 AM, Steve Ebersole <steve at hibernate.org> wrote:

> Hadn't we all agreed though that the convention was for sources to return null and not empty strings?
> 
> On Jul 29, 2012 11:11 AM, "Strong Liu" <stliu at hibernate.org> wrote:
> https://hibernate.onjira.com/browse/HHH-7480
> 
> don't know which change caused this, but it is fixed now
> 
> On Jul 28, 2012, at 10:27 AM, Steve Ebersole <steve at hibernate.org> wrote:
> 
>> Not sure if the expectation at this point is that all tests on the 
>> metamodel branch pass when hibernate.test.new_metadata_mappings is set 
>> to true or not.  That was supposed to be the idea with the new 
>> @FailureExpectedWithNewMetamodel annotation which I see is in place now. 
>>  But I am still seeing failures.  Yes I have local changes here, but 
>> there is no way my changes can be causing these:
>> 
>> 
>> Test 
>> org.hibernate.metamodel.internal.source.annotations.entity.TableNameTest 
>> FAILED
>> Test 
>> org.hibernate.metamodel.internal.source.annotations.entity.AccessBindingTest 
>> FAILED
>> Test 
>> org.hibernate.metamodel.internal.source.annotations.entity.InheritanceBindingTest 
>> FAILED
>> 
>> 
>> The failures in all cases is from attempt to bind the discriminator from 
>> annotations.  As far as I can tell the cause is that annotation sources 
>> are returning empty string for that column name rather than null.
>> 
>> But either way, nothing to do with my changes.  So I am going to go 
>> ahead and push my changes
>> 
>> 
>> 
>> -- 
>> steve at hibernate.org
>> http://hibernate.org
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
> 
> -------------------------
> Best Regards,
> 
> Strong Liu <stliu at hibernate.org>
> http://about.me/stliu/bio
> 

-------------------------
Best Regards,

Strong Liu <stliu at hibernate.org>
http://about.me/stliu/bio



More information about the hibernate-dev mailing list