Error executing database operation: CLEAN_INSERT

21 messages Options
Embed this post
Permalink
1 2
Djohannot

Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Hello,

When i run mvn jetty:run-war  -e, I've this error:

Error executing database operation: CLEAN_INSERT

I've drop my database from MySQL from the command line, but the problem is always the same. Has someone an Idea?
Djohannot

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
I found the origin of the problem.

I had an error on my sample-data.xml files......  (Always check your xml...)

David


Djohannot wrote:
Hello,

When i run mvn jetty:run-war  -e, I've this error:

Error executing database operation: CLEAN_INSERT

I've drop my database from MySQL from the command line, but the problem is always the same. Has someone an Idea?
phamvubinh

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Hi David,

I have the same problem as yours. What error did you find in your sample-data.xml file? My project can be built correctly with MySQL database but not Oracle database , so I don't think the sample-data.xml has a problem...

Binh Pham

Djohannot wrote:
I found the origin of the problem.

I had an error on my sample-data.xml files......  (Always check your xml...)

David


Djohannot wrote:
Hello,

When i run mvn jetty:run-war  -e, I've this error:

Error executing database operation: CLEAN_INSERT

I've drop my database from MySQL from the command line, but the problem is always the same. Has someone an Idea?
mraible

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
This might help:

http://issues.appfuse.org/browse/APF-718

<quote>
Set your hibernate_sequence to a high enough value so that future
insertions do not produce unique key constraint violations. For
instance, if your highest key value in any of your tables is 182974,
then the following statement would work for you -

SQL> alter sequence hibernate_sequence increment by 182975 minvalue 0;
</quote>

You also might need to remove <drop>true</drop> from your pom.xml.

Hope this helps,

Matt

On 9/5/07, phamvubinh <[hidden email]> wrote:

>
> Hi David,
>
> I have the same problem as yours. What error did you find in your
> sample-data.xml file? My project can be built correctly with MySQL database
> but not Oracle database , so I don't think the sample-data.xml has a
> problem...
>
> Binh Pham
>
>
> Djohannot wrote:
> >
> > I found the origin of the problem.
> >
> > I had an error on my sample-data.xml files......  (Always check your
> > xml...)
> >
> > David
> >
> >
> >
> > Djohannot wrote:
> >>
> >> Hello,
> >>
> >> When i run mvn jetty:run-war  -e, I've this error:
> >>
> >> Error executing database operation: CLEAN_INSERT
> >>
> >> I've drop my database from MySQL from the command line, but the problem
> >> is always the same. Has someone an Idea?
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Error-executing-database-operation%3A-CLEAN_INSERT-tf3433993s2369.html#a12515556
>
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

benoit

Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
Hi appfusers,
I'm using appfuse:gen on an appfuse:full-source RC1 project and i got a
fatal error :

[INFO] src/main/resources/database.properties not found within the project.
Tryi
ng absolute path.
[INFO] No hibernate properties file loaded.
[info] [AppFuse] Installing generated files (pattern: **/*.java)...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] D:\dev\projets\testrc1\target\appfuse\generated-sources not found.
[INFO]
------------------------------------------------------------------------
[INFO] Trace

Have you got any solution for me ?

Thanks,
Benoît.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
Does the object you're trying to generate for exist?

On 9/6/07, benoit moraillon <[hidden email]> wrote:

> Hi appfusers,
> I'm using appfuse:gen on an appfuse:full-source RC1 project and i got a
> fatal error :
>
> [INFO] src/main/resources/database.properties not found within the project.
> Tryi
> ng absolute path.
> [INFO] No hibernate properties file loaded.
> [info] [AppFuse] Installing generated files (pattern: **/*.java)...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] D:\dev\projets\testrc1\target\appfuse\generated-sources not found.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
>
> Have you got any solution for me ?
>
> Thanks,
> Benoît.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
benoit

RE: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
Yes i do the following things :

1) create a Ressource.java class
2) add  <mapping class="fr.crb.testrc1.model.Ressource"/> in
hibernate.cfg.xml
3) mvn compile hibernate3:hbm2ddl
=> ok

4) mvn appfuse:gen

What is the name of your pojo (i.e. Person)?: Ressource

=> Fatal Error

Thanks,
Benoît.


 

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Matt Raible
Envoyé : jeudi 6 septembre 2007 10:06
À : [hidden email]
Objet : Re: [appfuse-user] Appfuse:gen problem

Does the object you're trying to generate for exist?

On 9/6/07, benoit moraillon <[hidden email]> wrote:
> Hi appfusers,
> I'm using appfuse:gen on an appfuse:full-source RC1 project and i got
> a fatal error :
>
> [INFO] src/main/resources/database.properties not found within the
project.

> Tryi
> ng absolute path.
> [INFO] No hibernate properties file loaded.
> [info] [AppFuse] Installing generated files (pattern: **/*.java)...
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] FATAL ERROR
> [INFO]
> ----------------------------------------------------------------------
> -- [INFO] D:\dev\projets\testrc1\target\appfuse\generated-sources not
> found.
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Trace
>
> Have you got any solution for me ?
>
> Thanks,
> Benoît.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

benoit

RE: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
In addition my target directory contains :

appfuse-hibernate/
appfuse-root/
appfuse-service/
appfuse-struts/
appfuse-web-common/
classes/
surefire-reports/
test-classes/
testrc1-1.0-SNAPSHOT/
...

But no appfuse/ and no appfuse/generated-sources

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
Can you try running "mvn clean"? Did you run "full-source" on Windows?
If so, can you run "mvn install" successfully?

Matt

On 9/6/07, benoit moraillon <[hidden email]> wrote:

> In addition my target directory contains :
>
> appfuse-hibernate/
> appfuse-root/
> appfuse-service/
> appfuse-struts/
> appfuse-web-common/
> classes/
> surefire-reports/
> test-classes/
> testrc1-1.0-SNAPSHOT/
> ...
>
> But no appfuse/ and no appfuse/generated-sources
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

benoit

RE: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
On windows : yes it is

After running : mvn clean and mvn install
I got : BUILD SUCCESSFULL

appfuse:gen => FATAL ERROR



 

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Matt Raible
Envoyé : jeudi 6 septembre 2007 10:19
À : [hidden email]
Objet : Re: [appfuse-user] Appfuse:gen problem

Can you try running "mvn clean"? Did you run "full-source" on Windows?
If so, can you run "mvn install" successfully?

Matt

On 9/6/07, benoit moraillon <[hidden email]> wrote:

> In addition my target directory contains :
>
> appfuse-hibernate/
> appfuse-root/
> appfuse-service/
> appfuse-struts/
> appfuse-web-common/
> classes/
> surefire-reports/
> test-classes/
> testrc1-1.0-SNAPSHOT/
> ...
>
> But no appfuse/ and no appfuse/generated-sources
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Appfuse:gen problem

Reply Threaded More More options
Print post
Permalink
Does your class have the correct "fr.crb.testrc1.model" package at the
top? Here's the Person class we use to test with - you might want to
try it:

http://tinyurl.com/2lfx8w

I do think you've found a bug here in that it's not finding your class
and failing because of it. We should give the user a better error
message as to why it failed (when we figure it out).

Matt

On 9/6/07, benoit moraillon <[hidden email]> wrote:

> On windows : yes it is
>
> After running : mvn clean and mvn install
> I got : BUILD SUCCESSFULL
>
> appfuse:gen => FATAL ERROR
>
>
>
>
>
> -----Message d'origine-----
> De : [hidden email] [mailto:[hidden email]] De la part de Matt Raible
> Envoyé : jeudi 6 septembre 2007 10:19
> À : [hidden email]
> Objet : Re: [appfuse-user] Appfuse:gen problem
>
> Can you try running "mvn clean"? Did you run "full-source" on Windows?
> If so, can you run "mvn install" successfully?
>
> Matt
>
> On 9/6/07, benoit moraillon <[hidden email]> wrote:
> > In addition my target directory contains :
> >
> > appfuse-hibernate/
> > appfuse-root/
> > appfuse-service/
> > appfuse-struts/
> > appfuse-web-common/
> > classes/
> > surefire-reports/
> > test-classes/
> > testrc1-1.0-SNAPSHOT/
> > ...
> >
> > But no appfuse/ and no appfuse/generated-sources
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
benoit

RE: Appfuse:gen problem SOLVED

Reply Threaded More More options
Print post
Permalink
 In fact i forgot
@Entity
@Table(name = "ressource")

in my model class

Sorry and thanks for your help.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Appfuse:gen problem SOLVED

Reply Threaded More More options
Print post
Permalink
I still think this is a bug. We should be able to figure out when the
Entity you specify is not loaded and provide error messages
appropriately.

I've entered an issue in JIRA for this:

http://issues.appfuse.org/browse/APF-875

Thanks,

Matt

On 9/6/07, benoit moraillon <[hidden email]> wrote:

>  In fact i forgot
> @Entity
> @Table(name = "ressource")
>
> in my model class
>
> Sorry and thanks for your help.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Rob Hills

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
In reply to this post by mraible
Hi Matt,

I've just bumped into this problem and wanted clarification of the suggested
workaround.

On 5 Sep 2007 at 22:26, Matt Raible wrote:

> This might help:
>
> http://issues.appfuse.org/browse/APF-718
>
> <quote>
> Set your hibernate_sequence to a high enough value so that future
> insertions do not produce unique key constraint violations. For
> instance, if your highest key value in any of your tables is 182974,
> then the following statement would work for you -
>
> SQL> alter sequence hibernate_sequence increment by 182975 minvalue 0;
> </quote>

Are you saying that this needs to be done "manually" each time the DB is
reloaded, or is there a way of including it somehow into a mvn jetty:run-war
command (or whatever one uses to launch a project).

Is it possible to include raw SQL commands in the sample-data.xml
somehow?

Cheers,


Cheers,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
The easiest solution is don't use Oracle. ;-) Or maybe use PostgreSQL
since that's very similar. In all seriousness, there should be an easy
way to solve this problem, but I don't know it. There is a
SequenceGenerator annotation - maybe that can be used somehow?

  @Id
  @SequenceGenerator(
      name="EMP_SEQ_GEN",
      sequenceName="emp_sequence"
  )
  @GeneratedValue(
      strategy = GenerationType.SEQUENCE,
      generator="EMP_SEQ_GEN"
  )
  public Integer getId() {
    return this.id;
  }

Matt
On 9/8/07, Rob Hills <[hidden email]> wrote:

> Hi Matt,
>
> I've just bumped into this problem and wanted clarification of the suggested
> workaround.
>
> On 5 Sep 2007 at 22:26, Matt Raible wrote:
>
> > This might help:
> >
> > http://issues.appfuse.org/browse/APF-718
> >
> > <quote>
> > Set your hibernate_sequence to a high enough value so that future
> > insertions do not produce unique key constraint violations. For
> > instance, if your highest key value in any of your tables is 182974,
> > then the following statement would work for you -
> >
> > SQL> alter sequence hibernate_sequence increment by 182975 minvalue 0;
> > </quote>
>
> Are you saying that this needs to be done "manually" each time the DB is
> reloaded, or is there a way of including it somehow into a mvn jetty:run-war
> command (or whatever one uses to launch a project).
>
> Is it possible to include raw SQL commands in the sample-data.xml
> somehow?
>
> Cheers,
>
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Rob Hills

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Hi Matt,

On 8 Sep 2007 at 2:35, Matt Raible wrote:

> The easiest solution is don't use Oracle. ;-) Or maybe use PostgreSQL

Sorry, I should have mentioned, I'm using PostgreSQL.  I'll not start any
flame wars by talking about my opinion of Oracle...

> since that's very similar. In all seriousness, there should be an easy
> way to solve this problem, but I don't know it. There is a
> SequenceGenerator annotation - maybe that can be used somehow?
>
>   @Id
>   @SequenceGenerator(
>       name="EMP_SEQ_GEN",
>       sequenceName="emp_sequence"
>   )
>   @GeneratedValue(
>       strategy = GenerationType.SEQUENCE,
>       generator="EMP_SEQ_GEN"
>   )
>   public Integer getId() {
>     return this.id;
>   }

Those look like Oracle-specific sequences to me and it seems a shame to
have to put in stuff like that.

Maybe I'm misunderstanding the problem, but it seems to me that this
problem should affect all Databases - some data is inserted into tables
without updating the primary key generating system so if any of the keys in  
your inserted data are less than the value in the primary key generating
system (hibernate_sequence in our case), you get a duplicate key error.

Since this seems to be a test-data problem I believe that's where the
solution should be located - ideally there'd be a way of updating the
sequence using an appropriate entry in the sample-data.xml file.  I had a bit
of a scout around the DBUnit docco but unfortunately didn't see anything
that looked like an obvious candidate :-(

Is there a way of putting something into the relevant part of the pom.xml that
executes a HQL statement or something like that?

Meanwhile, I think I'll use the negative id idea mentioned in the discussion
following the JIRA entry: http://issues.appfuse.org/browse/APF-718

Cheers,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Yeah, negative keys is probably the way to go. Maybe we should have a
"dev" and "prod" profile in pom.xml. For "dev", sample-data.xml (or
test-data.xml) would be used (with negative keys). For production, a
default-data.xml would be used. This would have default values - for
example, an admin user and the default roles. Thoughts?

Matt

On 9/8/07, Rob Hills <[hidden email]> wrote:

> Hi Matt,
>
> On 8 Sep 2007 at 2:35, Matt Raible wrote:
>
> > The easiest solution is don't use Oracle. ;-) Or maybe use PostgreSQL
>
> Sorry, I should have mentioned, I'm using PostgreSQL.  I'll not start any
> flame wars by talking about my opinion of Oracle...
>
> > since that's very similar. In all seriousness, there should be an easy
> > way to solve this problem, but I don't know it. There is a
> > SequenceGenerator annotation - maybe that can be used somehow?
> >
> >   @Id
> >   @SequenceGenerator(
> >       name="EMP_SEQ_GEN",
> >       sequenceName="emp_sequence"
> >   )
> >   @GeneratedValue(
> >       strategy = GenerationType.SEQUENCE,
> >       generator="EMP_SEQ_GEN"
> >   )
> >   public Integer getId() {
> >     return this.id;
> >   }
>
> Those look like Oracle-specific sequences to me and it seems a shame to
> have to put in stuff like that.
>
> Maybe I'm misunderstanding the problem, but it seems to me that this
> problem should affect all Databases - some data is inserted into tables
> without updating the primary key generating system so if any of the keys in
> your inserted data are less than the value in the primary key generating
> system (hibernate_sequence in our case), you get a duplicate key error.
>
> Since this seems to be a test-data problem I believe that's where the
> solution should be located - ideally there'd be a way of updating the
> sequence using an appropriate entry in the sample-data.xml file.  I had a bit
> of a scout around the DBUnit docco but unfortunately didn't see anything
> that looked like an obvious candidate :-(
>
> Is there a way of putting something into the relevant part of the pom.xml that
> executes a HQL statement or something like that?
>
> Meanwhile, I think I'll use the negative id idea mentioned in the discussion
> following the JIRA entry: http://issues.appfuse.org/browse/APF-718
>
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Rob Hills

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Hi Matt,

On 8 Sep 2007 at 3:08, Matt Raible wrote:

> Yeah, negative keys is probably the way to go. Maybe we should have a
> "dev" and "prod" profile in pom.xml. For "dev", sample-data.xml (or
> test-data.xml) would be used (with negative keys). For production, a
> default-data.xml would be used. This would have default values - for
> example, an admin user and the default roles. Thoughts?

I think that's a good solution.  Simple and presumably relatively easy to
implement.  It also encourages separation of test data from production data.

> On 9/8/07, Rob Hills <[hidden email]> wrote:
> > Hi Matt,
> >
> > On 8 Sep 2007 at 2:35, Matt Raible wrote:
> >
> > Maybe I'm misunderstanding the problem, but it seems to me that this
> > problem should affect all Databases - some data is inserted into tables
> > without updating the primary key generating system so if any of the keys in
> > your inserted data are less than the value in the primary key generating
> > system (hibernate_sequence in our case), you get a duplicate key error.
> >
> > Since this seems to be a test-data problem I believe that's where the
> > solution should be located - ideally there'd be a way of updating the
> > sequence using an appropriate entry in the sample-data.xml file.  I had a bit
> > of a scout around the DBUnit docco but unfortunately didn't see anything
> > that looked like an obvious candidate :-(
> >
> > Is there a way of putting something into the relevant part of the pom.xml that
> > executes a HQL statement or something like that?
> >
> > Meanwhile, I think I'll use the negative id idea mentioned in the discussion
> > following the JIRA entry: http://issues.appfuse.org/browse/APF-718

Cheers,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Can you please enter an issue for this in JIRA? Feel free to link back
to this thread (via nabble).

Matt


On 9/8/07, Rob Hills <[hidden email]> wrote:

> Hi Matt,
>
> On 8 Sep 2007 at 3:08, Matt Raible wrote:
>
> > Yeah, negative keys is probably the way to go. Maybe we should have a
> > "dev" and "prod" profile in pom.xml. For "dev", sample-data.xml (or
> > test-data.xml) would be used (with negative keys). For production, a
> > default-data.xml would be used. This would have default values - for
> > example, an admin user and the default roles. Thoughts?
>
> I think that's a good solution.  Simple and presumably relatively easy to
> implement.  It also encourages separation of test data from production data.
>
> > On 9/8/07, Rob Hills <[hidden email]> wrote:
> > > Hi Matt,
> > >
> > > On 8 Sep 2007 at 2:35, Matt Raible wrote:
> > >
> > > Maybe I'm misunderstanding the problem, but it seems to me that this
> > > problem should affect all Databases - some data is inserted into tables
> > > without updating the primary key generating system so if any of the keys
> in
> > > your inserted data are less than the value in the primary key generating
> > > system (hibernate_sequence in our case), you get a duplicate key error.
> > >
> > > Since this seems to be a test-data problem I believe that's where the
> > > solution should be located - ideally there'd be a way of updating the
> > > sequence using an appropriate entry in the sample-data.xml file.  I had
> a bit
> > > of a scout around the DBUnit docco but unfortunately didn't see anything
> > > that looked like an obvious candidate :-(
> > >
> > > Is there a way of putting something into the relevant part of the
> pom.xml that
> > > executes a HQL statement or something like that?
> > >
> > > Meanwhile, I think I'll use the negative id idea mentioned in the
> discussion
> > > following the JIRA entry: http://issues.appfuse.org/browse/APF-718
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Dale Newfield

Re: Error executing database operation: CLEAN_INSERT

Reply Threaded More More options
Print post
Permalink
Matt Raible wrote:
> Can you please enter an issue for this in JIRA? Feel free to link back
> to this thread (via nabble).

I don't know if this works in all DBs, and I don't know how to translate
to JPA, but I use postgresql, hibernate, and xdoclet to set
generator-class="increment"

and it magically does the right thing...

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

1 2