Thank *you* - we love users that solve their own problems. ;-)

Matt

On 9/4/07, gederer <[EMAIL PROTECTED]> wrote:
>
> Problem solved. I had to add DTYPE to sample-data.xml.
>
> Thanks!
>
>
>
> gederer wrote:
> >
> > Hi,
> >
> > I have added inheritance to User so that I can create a derived class.
> > When I run mvn integration-test, I get the error message:
> >
> > [INFO] [dbunit:operation {execution: test-compile}]
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Error executing database operation: CLEAN_INSERT
> >
> > Embedded error: java.sql.SQLException: Field 'DTYPE' doesn't have a
> > default value
> >
> > Here is my User code:
> >
> > @Entity
> > @Table(name = "app_user")
> > @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
> > public class User extends BaseObject implements Serializable, UserDetails
> > {
> >       private static final long serialVersionUID = 3832626162173359411L;
> >
> >         ...
> > }
> >
> > Here is my derived class:
> >
> > @Entity
> > public class ToyProvider extends User implements Serializable
> > {
> >       private static final long serialVersionUID = -5386126702150882220L;
> >
> >         ...
> > }
> >
> > What am I doing wrong?
> >
> > Thanks!
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Field-%27DTYPE%27-doesn%27t-have-a-default-value-tf4379658s2369.html#a12484866
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to