Setting column length of a Long value with JPA annotations?

Precision, scale make more sense for a numeric type. Also depends whether the JDBC driver and RDBMS allows setting of those on the particular column type.

Hmmm, if I set @Column(precision=7) my database client still tells me that it will accept length (or precision) of 20... – Gearóid Apr 8 '10 at 14:29 No idea what you mean "it tells you". These values are to be used by the JPA implementation to create the table. So it ought to generate a DDL statement using them (assuming the JDBC driver allows it).

The JPA implementation will tell you what DDL is being used (in the log) – DataNucleus Apr 8 '10 at 14:42.

If so, I suggest you make use of the Dali plugin (already installed) and active the "JPA Details" view. This view will help guide you as to what attributes you need to plug into your annotations. You could have scale=7 instead of length=7.

However JPA is still going to tell the database to prepare to hold an int of scale 20. Also make sure you have your database dialect properly set.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions