I managed to fix it in the end by reading some really really old post
in the hibernate archive.

Effectively, if you define something, a class property that has no
initial value (in our case, _ ) then it bones the inserting for some
reason. Quite knows what it does that but it does...... and with very
little error as well :-(

For completeness sake, here is the final Author class:

@Entity
@Table(){val name="authors", val schema="dbo"}
class Author {
  @Id
  @GeneratedValue(){val strategy = GenerationType.IDENTITY}
  @Column(){val insertable = false, val unique = true}
  var id : Long = 100

  var name : String = ""

  @OneToMany(){val mappedBy = "author", val targetEntity =
classOf[Book]}
  var books : java.util.Set[Book] = new java.util.HashSet[Book]()
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to