-->
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.  [ 2 posts ] 
Author Message
 Post subject: Schemavalidierung eines generierten Mappings schlägt fehl
PostPosted: Tue Mar 17, 2009 4:52 am 
Newbie

Joined: Tue Mar 17, 2009 4:19 am
Posts: 1
Hibernate version: 3.3.0.SP1
Datenbank: SQL Server 2005
Ant-Version: 1.7.1

Hallo!

Bearbeite gerade eine legacy Datenbank und habe mir von Hibernate das Mapping generieren lassen, sieht soweit auch erstmal ganz gut aus.
Wollte nun das Mapping mit Ant und dem SchemaValidator überprüfen.

Alle Mapping files werden korrekt eingelesen:

Code:
[SchemaValidator] 09:04:07,140 INFO Environment:543 - Hibernate 3.3.0.SP1
[SchemaValidator] 09:04:07,156 INFO Environment:576 - hibernate.properties not found
[SchemaValidator] 09:04:07,156 INFO Environment:709 - Bytecode provider name : javassist
[SchemaValidator] 09:04:07,218 INFO Environment:627 - using JDK 1.4 java.sql.Timestamp handling
[SchemaValidator] 09:04:07,375 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsAngebot.hbm.xml
[SchemaValidator] 09:04:07,718 INFO HbmBinder:322 - Mapping class: us.UsAngebot -> us_angebot
[SchemaValidator] 09:04:07,968 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsAngebotDetail.hbm.xml
[SchemaValidator] 09:04:08,000 INFO HbmBinder:322 - Mapping class: us.UsAngebotDetail -> us_angebot_detail
[SchemaValidator] 09:04:08,015 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsAngebotTyp.hbm.xml
[SchemaValidator] 09:04:08,046 INFO HbmBinder:322 - Mapping class: us.UsAngebotTyp -> us_angebot_typ
[SchemaValidator] 09:04:08,046 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsFirma.hbm.xml
[SchemaValidator] 09:04:08,109 INFO HbmBinder:322 - Mapping class: us.UsFirma -> us_firma
[SchemaValidator] 09:04:08,109 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsKatText.hbm.xml
[SchemaValidator] 09:04:08,140 INFO HbmBinder:322 - Mapping class: us.UsKatText -> us_kat_text
[SchemaValidator] 09:04:08,140 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsMandant.hbm.xml
[SchemaValidator] 09:04:08,156 INFO HbmBinder:322 - Mapping class: us.UsMandant -> us_mandant
[SchemaValidator] 09:04:08,156 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsTypDetail.hbm.xml
[SchemaValidator] 09:04:08,187 INFO HbmBinder:322 - Mapping class: us.UsTypDetail -> us_typ_detail
[SchemaValidator] 09:04:08,187 INFO Configuration:332 - Reading mappings from file: D:\TestProjects\reverseUS\src\generated\us\UsZugang.hbm.xml
[SchemaValidator] 09:04:08,218 INFO HbmBinder:322 - Mapping class: us.UsZugang -> us_zugang
[SchemaValidator] 09:04:08,265 INFO Dialect:175 - Using dialect: org.hibernate.dialect.SQLServerDialect
[SchemaValidator] 09:04:08,281 INFO SchemaValidator:121 - Running schema validator
[SchemaValidator] 09:04:08,281 INFO SchemaValidator:129 - fetching database metadata
[SchemaValidator] 09:04:08,281 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
[SchemaValidator] 09:04:08,281 INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20
[SchemaValidator] 09:04:08,296 INFO DriverManagerConnectionProvider:68 - autocommit mode: false
[SchemaValidator] 09:04:08,390 INFO DriverManagerConnectionProvider:103 - using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://****;databasename=****
[SchemaValidator] 09:04:08,390 INFO DriverManagerConnectionProvider:109 - connection properties: {user=****, password=****}
[SchemaValidator] 09:04:09,984 INFO HbmBinder:2404 - Mapping collection: us.UsAngebot.usAngebotDetails -> us_angebot_detail
[SchemaValidator] 09:04:09,984 INFO HbmBinder:2404 - Mapping collection: us.UsAngebotTyp.usAngebots -> us_angebot
[SchemaValidator] 09:04:09,984 INFO HbmBinder:2404 - Mapping collection: us.UsAngebotTyp.usTypDetails -> us_typ_detail
[SchemaValidator] 09:04:10,000 INFO HbmBinder:2404 - Mapping collection: us.UsFirma.usAngebots -> us_angebot
[SchemaValidator] 09:04:10,000 INFO HbmBinder:2404 - Mapping collection: us.UsFirma.usZugangs -> us_zugang
[SchemaValidator] 09:04:10,000 INFO HbmBinder:2404 - Mapping collection: us.UsMandant.usFirmas -> us_firma
[SchemaValidator] 09:04:10,000 INFO HbmBinder:2404 - Mapping collection: us.UsZugang.usAngebots -> us_angebot
[SchemaValidator] 09:04:10,156 INFO TableMetadata:62 - table found: kisdb.dbo.us_angebot
[SchemaValidator] 09:04:10,156 INFO TableMetadata:63 - columns: [us_angebot_frei, us_firma_id, us_zugang_login, us_angebot_seit, us_angebot_frei_am, us_angebot_id, us_angebot_thema, us_angebot_text, us_angebot_typ_id]
[SchemaValidator] 09:04:10,187 INFO TableMetadata:62 - table found: kisdb.dbo.us_angebot_detail
[SchemaValidator] 09:04:10,187 INFO TableMetadata:63 - columns: [us_kat_text_id, us_angebot_id]
[SchemaValidator] 09:04:10,203 INFO TableMetadata:62 - table found: kisdb.dbo.us_angebot_typ
[SchemaValidator] 09:04:10,203 INFO TableMetadata:63 - columns: [us_kat_text_id, us_angebot_typ_id]
[SchemaValidator] 09:04:10,234 INFO TableMetadata:62 - table found: kisdb.dbo.us_firma
[SchemaValidator] 09:04:10,234 INFO TableMetadata:63 - columns: [us_firma_str_hnr, us_firma_ort, us_firma_name, useus, us_firma_ansprech, us_firma_plz, us_firma_fax, us_firma_profil, us_ident_nr, us_mandant_id, us_firma_id, us_firma_www, us_firma_tel, us_firma_anspr_typ, us_firma_email, locked, isextranet]
[SchemaValidator] 09:04:10,250 INFO TableMetadata:62 - table found: kisdb.dbo.us_kat_text
[SchemaValidator] 09:04:10,250 INFO TableMetadata:63 - columns: [us_kat, us_kat_text_sc, us_kat_kurz, us_kat_text_id]
[SchemaValidator] 09:04:10,265 INFO TableMetadata:62 - table found: kisdb.dbo.us_mandant
[SchemaValidator] 09:04:10,265 INFO TableMetadata:63 - columns: [us_mandant_id, us_mandant_name]
[SchemaValidator] 09:04:10,312 INFO TableMetadata:62 - table found: kisdb.dbo.us_typ_detail
[SchemaValidator] 09:04:10,312 INFO TableMetadata:63 - columns: [us_typ_detail_azr, us_typ_detail_grp, us_kat_text_id, us_angebot_typ_id]
[SchemaValidator] 09:04:10,328 INFO TableMetadata:62 - table found: kisdb.dbo.us_zugang
[SchemaValidator] 09:04:10,328 INFO TableMetadata:63 - columns: [us_firma_id, us_zugang_p, us_zugang_login, last_access, last_access_user]
[SchemaValidator] 09:04:10,375 INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:sqlserver://****;databasename=****


Dann erhalte ich aber folgende Fehlermeldung:

Code:
BUILD FAILED
D:\TestProjects\reverseUS\build.xml:71: Schema text failed: component class not found: us.UsKatTextId


Da das Mapping etwas umfangreicher ist wollte ich es mir/euch erstmal ersparen hier alles zu posten. Vieleicht könnt ihr mir auch nen Tipp geben wo mit das Problem zusammenhängen könnte.
Bin mir jetzt nicht sicher ob es daran liegt das eine Klasse nicht gefunden wird oder ob es ein Problem mit nem zusammengesetzten Primärschlüssel gibt.

Vielen Dank schonmal für eure Antworten!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 21, 2009 6:37 am 
Regular
Regular

Joined: Sun Aug 01, 2004 6:49 pm
Posts: 76
Was ist denn us.UsKatTextId für ein Typ? Umfangreiches Posting schadet weniger als das Weglassen der vom Unwissenden für als solche würdig empfundenen Teile. ;-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.