Hello, Is there someone having a full example using composite-id(table with primary composed with 3 fields). <composite-id name="id" class="CompositeID"> <key-property name="vl" column="city"/> <key-property name="cp" column="post"/> <key-property name="adr" column="adr"/> </composite-id> I rewrite the equals and hashcode methode, but it is not work. Thanks
No mapping error? So what is the SQL error - or is it just failing silently? You might want to enable Hibernates JDBC logging in hibernate.properties (see docs) which shows you the actual SQL it is trying to run, if any at all.
Hmm. This stack trace doesn't seem to relate to an insert operation, or am I misunderstanding soemthing? I can see that there is one Hibernate class (Rloxane) mapped without errors and added to the Configuration, but I don't see any operations on then session (which would usually be logged, unless you have configured the logging ignore these? As you say, there are no errors - turn on Hibernate's JDBC debugging (see docs), write a unit test which adds a new Rloxane object, run it and check: - that an insert statement is created and run - that no mapping errors are being generated and silently ignored (unlikely).