Please look at the example on the persistence page:
https://glassfish.dev.java.net/javaee5/persistence/entity-persistence-support.html#Java_SE.
You'll see the correct names for DDL generation properties.
thanks,
-marina
Sanjeeb Kumar Sahoo wrote:
> Pl find answer at
> http://blogs.sun.com/roller/page/theaquarium?entry=version_information_is_required_for
>
>
> Thanks,
> Sahoo
> Dmitry Mozheyko wrote:
>
>> Hello all.
>> I try to deploy my enterprise application (working fine on build b32g
>> Linux) onto Solaris Sparc build b43 and receive error:
>> Invalid Deployment Descriptors in Deployment descriptor file
>> META-INF/persistence.xml in archive [example-ejb.jar]. Line 2 Column
>> 61 -- cvc-complex-type.4: Attribute 'version' must appear on element
>> 'persistence'."
>>
>> [persistence.xml-file]
>> <?xml version="1.0" encoding="UTF-8"?>
>> <persistence xmlns="http://java.sun.com/xml/ns/persistence">
>> <persistence-unit name="em" transaction-type="JTA">
>> <jta-data-source>jdbc/__default</jta-data-source>
>> <properties>
>> <property name="ddl-generation" value="createtables"/>
>> </properties>
>> </persistence-unit>
>> </persistence>
>>
>> Why?
>>
>>