-
-
2. Re: @Column
mduffy_lists Dec 31, 2004 12:26 AM (in response to abdenn)In section, "10.1.5 Column Annotation", the spec states, "If a Column annotation is not specified, or if the name annotation member is missing, the column name defaults to the persistent property or field name."
Your post stated, " If I enter something like @Column( length=80), the jar will not be deployed. If I change that to @Column(name="xxx", length=80), then I can deploy the package.ejb3 file. "
It may simply be that your field name does not correspond to a column in your table, or it may be that this part of the spec is not yet implemented in the preview release.
Mike -
3. Re: @Column
freecake Feb 15, 2005 5:40 PM (in response to abdenn)Hello,
Is actually @Column lenght attribute supported by the jboss-head branche ?
Because jboss create a varchar(255) column despite I tag @Column(name="login",length=20) before my getter ...
My jobss version is jboss-head checked out today ... and I think I do not have make something wrong ...@Column(name="login",length=20) public String getLogin() { return login ; }
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup hibernate.hbm2ddl.auto=create-drop hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider hibernate.connection.datasource=java:/MyDataSourceDS hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect