Is there any way in JPA I can add an autogenerated column to the @JoinTable annotation?
The only option i see is to use a trigger, just wanted to know if it is possible to insert a value into a column not participating as one of the joincolumns. [ November 07, 2007: Message edited by: Shailesh Kini ]
But in your case since you only have a sequence id, you could also just use a trigger to assign the sequence and continue to use the ManyToMany mapping, it would probably be simpler. You could of course also just remove the sequence id.