please review HHH-2962
by Julius Stroffek
Hi All,
I have attached a patch also with a test case for HHH-2962 and since I
do not have enough rights in JIRA to change the issue status from
'Awaiting Test Case' to something that people would have a notice on it,
I am posting a message to the list. Please review the patch and provide
some comments. Thanks.
Cheers
Julo
16 years, 9 months
Re: [hibernate-dev] annotation for adding column comments for hbm2doc
by Emmanuel Bernard
Comments are set on Columns in the Hibernate meta model
So you need a column annotation to host the comment element
@Column(comment="")
This is what Prasanna has done if I remember correctly. As Max said,
it would be cool to have the fix attached in JIRA in patch form.
Applying it is much easier. Note that a small unit test would be cool
too :))
On Feb 8, 2008, at 17:52, Oliver B. Fischer wrote:
> Hello,
>
> can you give me an more detailed example of the annotation you
> imagine?
>
> Bye,
>
> Oliver
>
> Emmanuel Bernard schrieb:
>> Does not work well for properties with multiple columns and
>> entities with multiple tables
>> On Jan 30, 2008, at 09:14, Oliver B. Fischer wrote:
>>> Hello Emmanuel,
>>>
>>> wouldn't an annotation like this if you wan't to comment an table
>>>
>
> --
> Oliver B. Fischer Tel. +49 (0)30 44 79 32 51
> Schönhauser Allee 64 Mobil: +49 (0)178 7903538
> D-10437 Berlin mailto:o.b.fischer@gmx.de
>
>
16 years, 9 months
how to compile the code
by Farzad Kohantorabi
Hello,
I get a lot of problems compiling Hibernate core with Maven. I have a
feeling this is a work in progress since some of the problems I see are due
to changes in late December 2007. For example, the project file in core/core
complains it is missing antlr, dom4j and commons-collections versions. I
also can not get my maven to find the jdocbook snapshot either even though I
have set up my maven to look into the jboss repositories. Is there something
I am missing or the builds don't work at this point?
Thanks for helping me out,
Farzad-
16 years, 9 months
Loading data with circular dependencies
by Cheryl Li
Hi all,
I know it doesn't seem to make much sense that there are circular
dependencies in a data model, but the requirements make it so.
I'm coming across a problem where it becomes a "chicken or the egg" kind
of issue...
I will described a scaled-back version of our current model with the
following example:
(Obj1: User, Obj2: Specialization)
1) There is a Many to Many relationship between Users and
Specializations, because many users can have many specializations.
2) There is a Many to One relationship between Specializations and
Users, because each specialization will have a "primary contact" (aka
user). This is not nullable either.
Now how does one load the data?
1) Load Users first, but there are ConstraintViolationExceptions since
the Specialization objects have not been loaded.
2) Load the Specializations first, but it will complain about the null
FK since the User object hasn't been loaded yet.
Right now I am writing a workaround in java where I will load Users
first. If a User object breaks the constraint, I will make a clone and
load it without the Specializations set (clearing it manually with the
setter). But I will keep a list of the failed User objects to load for
later. I will load the Specializations second. Then finally, will try
to load the "bad apple" Users at the end, with the Specializations set
populated. Hibernate should simply update the Users with the
Specializations (and thus add records into the M-to-M junction table).
Is there something cleaner I can do to get around these circular
dependencies? Something I can leverage in my Hibernate mapping?
Thanks,
-Cheryl
16 years, 10 months