Re: [hibernate-dev] On @OneToOne(optional=true) and @PrimaryKeyJoinColumn

2011-08-24 Thread Gail Badner
Responses inline... - Original Message - > From: "Emmanuel Bernard" > To: "Gail Badner" > Cc: hibernate-dev@lists.jboss.org > Sent: Wednesday, August 24, 2011 4:21:39 PM > Subject: Re: [hibernate-dev] On @OneToOne(optional=true) and > @PrimaryKeyJoinColumn > On 24 août 2011, at 23:17, G

[hibernate-dev] HHH-6020 : Move to JBossTS caused some test failures in hibernate-envers

2011-08-24 Thread Gail Badner
This is regarding: https://hibernate.onjira.com/browse/HHH-6020 Does anyone have a feel for whether this is a bug in Hibernate core or in JBoss Transactions? Anyone know if there is a JBoss Transactions JIRA issue about this? Who on that team should I follow up with? Thanks, Gail _

Re: [hibernate-dev] On @OneToOne(optional=true) and @PrimaryKeyJoinColumn

2011-08-24 Thread Emmanuel Bernard
On 24 août 2011, at 23:17, Gail Badner wrote: > @NotFound is Hibernate-specific, isn't it? Is there anything in the JPA 2 > spec that covers this functionality? Nope, JPA 2 does not cover this case. > > Since the default for @OneToOne is optional=true, it doesn't seem right that > it always

Re: [hibernate-dev] On @OneToOne(optional=true) and @PrimaryKeyJoinColumn

2011-08-24 Thread Gail Badner
@NotFound is Hibernate-specific, isn't it? Is there anything in the JPA 2 spec that covers this functionality? Since the default for @OneToOne is optional=true, it doesn't seem right that it always be implicitly applied with @PrimaryKeyJoinColumn, unless optional=false is explicitly specified.

[hibernate-dev] JPA 2 spec excerpts about @PrimaryKeyJoinColumn and derived identities

2011-08-24 Thread Gail Badner
I'm sending these excerpts separately, rather than cluttering up Emmanuel's thread. Regards, Gail 11.1.40 PrimaryKeyJoinColumn Annotation The PrimaryKeyJoinColumn annotation specifies a primary key column that is used as a foreign key to join to another table. The PrimaryKeyJoinColumn annotati

Re: [hibernate-dev] [Search] proposing an alternative to depth in @IndexedEmbedded

2011-08-24 Thread Zach Kurey
On Aug 24, 2011, at 8:26 AM, Sanne Grinovero wrote: > This complicates things. First of all it means that the "subPaths" > property should now be named "includeSubPaths" instead, as opposing to > "excludeSubPaths". Yes, if 'excludeSubPaths' is provided, then 'subPaths' should be renamed to 'in

[hibernate-dev] On @OneToOne(optional=true) and @PrimaryKeyJoinColumn

2011-08-24 Thread Emmanuel Bernard
There is a distinction between optional=true and @NotFound I have had a few discussions with Gail on https://hibernate.onjira.com/browse/HHH-4982 and https://hibernate.onjira.com/browse/ANN-725 Don't spend too much time on these issue reports, they are very confusing. The question boils down to

Re: [hibernate-dev] [Search] proposing an alternative to depth in @IndexedEmbedded

2011-08-24 Thread Sanne Grinovero
2011/8/22 Zach Kurey : > Hi, > > I was the poster on the forum that triggered this conversation.  Sanne > suggested I jump onto the dev mailing list for this and future suggestions, > so here I am.  I'm a developer in the San Francisco bay area.  I've been > using hibernate search for about a ye

Re: [hibernate-dev] [Search] supporting DISTINCT (or similar) for values

2011-08-24 Thread Sanne Grinovero
2011/8/24 Hardy Ferentschik : > On Wed, 24 Aug 2011 10:36:39 +0200, Sanne Grinovero > wrote: > >> This was asked some times, and today a new interesting use case was >> proposed on the forums: >> https://forum.hibernate.org/viewtopic.php?f=9&t=1012360 >> >> I usually tell the whole story "distinct

Re: [hibernate-dev] [Search] supporting DISTINCT (or similar) for values

2011-08-24 Thread Hardy Ferentschik
On Wed, 24 Aug 2011 10:36:39 +0200, Sanne Grinovero wrote: > This was asked some times, and today a new interesting use case was > proposed on the forums: > https://forum.hibernate.org/viewtopic.php?f=9&t=1012360 > > I usually tell the whole story "distinct is not fit for fulltext... > use the

[hibernate-dev] [Search] supporting DISTINCT (or similar) for values

2011-08-24 Thread Sanne Grinovero
This was asked some times, and today a new interesting use case was proposed on the forums: https://forum.hibernate.org/viewtopic.php?f=9&t=1012360 I usually tell the whole story "distinct is not fit for fulltext... use the relational queries" but since it's often requested (on Infinispan Query to