[jira] Closed: (OPENJPA-431) Order INSERT statements on joined subclasses from parent to child

2007-11-05 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey closed OPENJPA-431. --- Resolution: Invalid Closing on the assumption that setting the 'openjpa.jdbc.SchemaFactory'

[jira] Updated: (OPENJPA-432) Would like for OpenJPA to provide a platform for eclipse Dali

2007-11-05 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-432: Priority: Major (was: Minor) > Would like for OpenJPA to provide a platform for eclipse D

[jira] Closed: (OPENJPA-433) Timestamp rounded upon database updating

2007-11-05 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey closed OPENJPA-433. --- Resolution: Invalid This is actually intentional, and can be controlled via the DatePrecisio

[jira] Created: (OPENJPA-434) Setting a null value for a primitive type field in a query results in hang

2007-11-05 Thread Nick Johnson (JIRA)
Setting a null value for a primitive type field in a query results in hang -- Key: OPENJPA-434 URL: https://issues.apache.org/jira/browse/OPENJPA-434 Project: OpenJPA Is

[jira] Created: (OPENJPA-433) Timestamp rounded upon database updating

2007-11-05 Thread Nick Johnson (JIRA)
Timestamp rounded upon database updating Key: OPENJPA-433 URL: https://issues.apache.org/jira/browse/OPENJPA-433 Project: OpenJPA Issue Type: Bug Components: sql Affects Versions: 1.0.0

Re: [VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Albert Lee
JPA TCK ran successfully against Derby and DB2. Albert Lee. On 11/5/07, Albert Lee <[EMAIL PROTECTED]> wrote: > > I had another team member, who has access to the TCK license, ran the TCK > before OPENJPA-370 is removed. I plan to do the same for this release > candidate. > > If you can also giv

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
On Nov 5, 2007, at 9:25 PM, Craig L Russell wrote: I think one of the confusions here is that there are two ways to map relationships using a join table from the side that has a unique column in the join table. You can consider the table as a secondary table, in which there is at most on

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Craig L Russell
I think one of the confusions here is that there are two ways to map relationships using a join table from the side that has a unique column in the join table. You can consider the table as a secondary table, in which there is at most one row in the join table for each row in the main table

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Marina Vatkina
Right. But without mappedBy, it's not a backpointer, but another unidirectional relationship. -marina Patrick Linskey wrote: I think he's actually trying to just have a single (unidirectional) reference -- I think he added the backpointer just to see if he could get things working that way. -

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
Hmm. Looking at 2.1.8.3.2, it seems that unidirectional ManyToOnes are legal. Maybe there's a bug in OpenJPA when putting a unidirectional ManyToOne into a secondary table or something, or maybe it's just a bug in all unidirectional ManyToOne cases. -Patrick On Nov 5, 2007 6:02 PM, Geir Magnusson

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
Exactly But thanks all for the help. geir On Nov 5, 2007, at 8:37 PM, Patrick Linskey wrote: I think he's actually trying to just have a single (unidirectional) reference -- I think he added the backpointer just to see if he could get things working that way. -Patrick On Nov 5, 2007 5:2

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
On Nov 5, 2007, at 8:22 PM, Patrick Linskey wrote: I believe it's unidirectional ManyToOne (if that's legal). Each InputFile is associated with one Show and one Show only, but multiple InputFiles can be associated to the same Show. I believe that what you're describing is a unidirectional on

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
I think he's actually trying to just have a single (unidirectional) reference -- I think he added the backpointer just to see if he could get things working that way. -Patrick On Nov 5, 2007 5:26 PM, Marina Vatkina <[EMAIL PROTECTED]> wrote: > You need to have @OneToMany(mappedBy="show") - otherw

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Marina Vatkina
You need to have @OneToMany(mappedBy="show") - otherwise you get 2 unidirectional relationships, while you are trying to make them bidirectional. Regards, -marina Geir Magnusson Jr. wrote: To review, I have three tables : Show, InputFile and a join table, Show2InputFile. Show happens to be a

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
> I believe it's unidirectional ManyToOne (if that's legal). Each > InputFile is associated with one Show and one Show only, but multiple > InputFiles can be associated to the same Show. I believe that what you're describing is a unidirectional one-to-one with a join table. I think that you can m

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
To review, I have three tables : Show, InputFile and a join table, Show2InputFile. Show happens to be a subclass of InventoryItem using JOINED inheritance strategy. Not sure if that matters. (I've seen some weird behavior w/ Hibernate w/ JOINED, so I'm suspicious of it for no rational re

Re: [VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Albert Lee
That will be done after the voting is completed. There are also a list of other tasks to be completed at that point in time. http://openjpa.apache.org/releasing-openjpa.html - task " Thursday, 15:30" Albert Lee. On 11/5/07, Kevin Sutter <[EMAIL PROTECTED]> wrote: > > When do we update the docume

Re: [VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Kevin Sutter
When do we update the documentation site? ( http://cwiki.apache.org/openjpa/documentation.html) Is that a post release [vote] activity? On 11/5/07, Albert Lee <[EMAIL PROTECTED]> wrote: > > I had another team member, who has access to the TCK license, ran the TCK > before OPENJPA-370 is removed.

Re: [VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Albert Lee
I had another team member, who has access to the TCK license, ran the TCK before OPENJPA-370 is removed. I plan to do the same for this release candidate. If you can also give it a try, that would also be great. It does not hurt to have another source to validate the image is good. Thanks, Albert

Re: [VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Marc Prud'hommeaux
Albert- Looks good to me. Were you able to run it against the TCK? If you don't have access, I can run it here and make sure it passes. On Nov 5, 2007, at 1:22 PM, Albert Lee wrote: A candidate build for OpenJPA 1.0.1 maintenance release is available at: http://openjpa.apache.org/bui

[VOTE] OpenJPA 1.0.1 Release Voting Request

2007-11-05 Thread Albert Lee
A candidate build for OpenJPA 1.0.1 maintenance release is available at: http://openjpa.apache.org/builds/1.0.1/downloads/ Please review these artifacts and signatures, and vote whether we should release them as Apache OpenJPA version 1.0.1. Release notes for this release are included in the

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
Where are the foreign keys? Bear in mind that @OneToOne, @OneToMany, @ManyToMany, and @ManyToOne are JPA annotations, not ER annotations. The concepts differ a bit. -Patrick On Nov 5, 2007 11:33 AM, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: > > On Nov 5, 2007, at 2:07 PM, Patrick Linskey wro

[jira] Created: (OPENJPA-432) Would like for OpenJPA to provide a platform for eclipse Dali

2007-11-05 Thread Wes Wannemacher (JIRA)
Would like for OpenJPA to provide a platform for eclipse Dali - Key: OPENJPA-432 URL: https://issues.apache.org/jira/browse/OPENJPA-432 Project: OpenJPA Issue Type: Wish C

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
On Nov 5, 2007, at 2:07 PM, Patrick Linskey wrote: What happens if you just use a @OneToOne instead of the @ManyToOne? The problem is that it's not OneToOne Can you describe this in more detail? (I.e., in terms of what your schema looks like.) Well, there's a Show table, w/ a pk, and the

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
> > What happens if you just use a @OneToOne instead of the @ManyToOne? > > The problem is that it's not OneToOne Can you describe this in more detail? (I.e., in terms of what your schema looks like.) -Patrick On Nov 5, 2007 10:40 AM, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: > > On Nov 5, 2

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
On Nov 5, 2007, at 12:44 PM, Patrick Linskey wrote: I'm a newbie, so I don't quite grok the question. Show itself doesn't have any references to InputFile. Aha! IIRC, @ManyToOne is only meaningful when used as the back side of a @OneToMany. We don't have that. There are reasons, and its i

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
> I'm a newbie, so I don't quite grok the question. Show itself > doesn't have any references to InputFile. Aha! IIRC, @ManyToOne is only meaningful when used as the back side of a @OneToMany. What happens if you just use a @OneToOne instead of the @ManyToOne? -Patrick On Nov 5, 2007 9:16 AM,

[jira] Updated: (OPENJPA-428) Confusing error message regarding "openjpa.Id"

2007-11-05 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-428: Attachment: OPENJPA-428-test.jar Attached is a test case (source and compiled classes) tha

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
On Nov 5, 2007, at 11:48 AM, Patrick Linskey wrote: Hi, What does the other side of the relation look like? I'm a newbie, so I don't quite grok the question. Show itself doesn't have any references to InputFile. Also, what does the Show class look like? in what way? Show is a subcla

Re: Annotations and JPA

2007-11-05 Thread Julien Martin
Thanks a lot for replying, I am going to have a look at these classes. Julien. 2007/11/5, Patrick Linskey <[EMAIL PROTECTED]>: > > Hi, > > JPA annotations are parsed in the AnnotationPersistenceMetaDataParser > and AnnotationPersistenceMappingParser. @Column is a JDBC-specific > annotation, so is

Re: Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Patrick Linskey
Hi, What does the other side of the relation look like? Also, what does the Show class look like? -Patrick On Nov 5, 2007 8:08 AM, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: > I'm a newbie, so forgive me if I'm not asking the question the right > way. > > I have a join table in my DB : > > +-

Re: Annotations and JPA

2007-11-05 Thread Patrick Linskey
Hi, JPA annotations are parsed in the AnnotationPersistenceMetaDataParser and AnnotationPersistenceMappingParser. @Column is a JDBC-specific annotation, so is handled by AnnotationPersistenceMappingParser. Note that XML configuration files override the JPA annotations. -Patrick On Nov 5, 2007

Problem with @ManyToOne and @JoinTable

2007-11-05 Thread Geir Magnusson Jr.
I'm a newbie, so forgive me if I'm not asking the question the right way. I have a join table in my DB : +-+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-+

Annotations and JPA

2007-11-05 Thread Julien Martin
Hello, I am looking into the source code of OpenJpa and I am trying to better understand how it is implemented. My question relates to annotation processing by OpenJpa. Let's take a simple JPA annotation : [EMAIL PROTECTED]/code]. I would like to know: -What is the class in charge of processing t

[jira] Commented: (OPENJPA-294) Exception while enchnancing the java classes using OpenJPA PCEnhancerTask with build.xml

2007-11-05 Thread Richmond Stevenson (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540189 ] Richmond Stevenson commented on OPENJPA-294: Try adding a path element to where ever your compiled class