Skip to content
This repository
Browse code

make associations work again

  • Loading branch information...
commit ffbf1fbd60ffbc2b86bb4acf0ae33e1af2af94f5 1 parent 3231501
Douglas Rodrigo douglasrodrigo authored

Showing 1 changed file with 5 additions and 11 deletions. Show diff stats Hide diff stats

  1. +5 11 lib/dm-hibernate-adapter/hibernate.rb
16 lib/dm-hibernate-adapter/hibernate.rb
@@ -231,21 +231,15 @@ def to_java_class_name
231 231
232 232 def hibernate!
233 233 result = false
234   - relationships.each do |property, relationship|
235   - next unless relationship
236   -
237   - relationship.child_key
238   - relationship.parent_key
239   - relationship.through if relationship.respond_to?(:through)
240   - relationship.via if relationship.respond_to?(:via)
241   - end
242 234
243 235 unless mapped?
244 236 discriminator = nil
245 237
246   - # relationships.each do |rel|
247   - # end
248   -
  238 + relationships.each do |relationship|
  239 + relationship.source_key
  240 + relationship.target_key
  241 + end
  242 +
249 243 properties.each do |prop|
250 244 discriminator = add_java_property(prop) || discriminator
251 245 end

1 comment on commit ffbf1fb

Christian Meier
Owner

little change and it works again - cool :)

Please sign in to comment.
Something went wrong with that request. Please try again.