Internal Website Search

51-60 of 200 resultsRefresh

@Column length is not working.

I am using objectdb 2.8.3, I have a Entity class with a column that is declared as @Column(unique = true, nullable = false, length = 16) but when i m trying to insert a string for that column with a string that has more than 16 character, not able to get any

The attribute column name (EXCEPTION) is a reserved SQL-99 keyword.

column name (EXCEPTION) is a reserved SQL-99 keyword." ThreaT Ashton Hogan This warning ... /java/jpa/Column">Column annotation that will map the name of the Java field to another name in the database: @Column(name="exceptionText") private String

@Column( name = "columnName") doesn't work

"> @Entity public class AfwDataKey { @Id @GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column(name = "KEY_DESCRIPTOR ... = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List<AfwDataKeyItem> dataItems

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

{ @Column(name = "myText") String myText; @Temporal(TemporalType.TIMESTAMP) @Column ... obviously makes a difference. The date column seems to be converted to a String so it can be compared with the query parameter. While I want to compare the date column

Adding new unique columns

What is the best practice for when you need to add a new unique column to an existing database? Simply adding the column with the @Unique annotation will result in "Attempt to reuse an existing value (null)", so the only option I can surmise is to add the column, update

drop a column from table

Hi, I want to drop one column from my database table suppose i have 3 column (id, name, address) now i want to drop address. then what will be the query or procedure.. column permanently then what will be the procedure

Index on a low cardinality column

significantly speed up queries." "An index on the gender column likely would not help because there's no value in an index on a low cardinality column. Meaning ... on a low cardinality column is generally not recommended as mentioned above. So is there any

SqlResultSetMapping.columns

/ColumnResult" title="Annotation in javax.persistence">ColumnResult[] columns

javax.persistence.JoinColumn

) Specifies a column for joining ... itself is defaulted, a single join column is assumed and the default values apply. Example:column is in table for Order public Set getOrders() {return

javax.persistence.MapKeyJoinColumn

that is a map key. The map key join column is in the collection table, join table, or table ... > annotation is specified, a single join column is assumed and the default values apply. Example 1 ... (name="STORE")) @Column(name="COPIES_IN_STOCK") @MapKeyJoinColumn(name="MOVIE