#2318: Hibernate's component mapping type for Django
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner: adrian
Type: | Status: closed
enhancement | Component: Database layer
Milestone: | (models, ORM)
Version: | Severity: normal
Resolution: wontfix | Keywords:
Triage Stage: | Has patch: 0
Unreviewed | Needs tests: 0
Needs documentation: 0 | Easy pickings: 0
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by anonymous):
* ui_ux: => 0
* easy: => 0
Comment:
Abstract model does not look as though it is equivalent to Hibernate
components.
Using the OP's example, you would reference the currency field by
"Product.price.currency" with a Hibernate component. With a Django
abstract model you would have "Product.currency". With a OneToOneField you
would have "Product.price.currency" but then you have an extra undesirable
join.
I am fairly new to Django so please correct me if I am wrong.
--
Ticket URL: <https://code.djangoproject.com/ticket/2318#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.