perlu diingat bahwa nama kolom di index adalah nama kolom di tabel di
schema database,
bukan nama field/property di entity classnya.

2009/3/31 Chandra. <chandra.haria...@yahoo.co.id>:
>
>
> mujoko mujoko wrote:
>>
>> di bagian
>> indexes = { @Index(name = "kodeJurusan", columnNames = { "kodeJurusan" })
>> })
>>
>> columnNames nya = "kodeJurusan"
>>
>> sedangkan di member variable
>> @Column(name = "KodeJurusan", length = 10, insertable = true, updatable =
>> true)
>> nama kolomnya = "KodeJurusan"
>>
>> Beberapa database vendor nama kolom bisa case sensitif
>>
>> Mungkin itu penyebabnya
>>
>
> Ok thank's yach mas Mujoko ^^..
> saya menggunakan MySQL5..
> ternyata saya salah di SchemaUpdate hibernate-nya..
> ternyata seharusnya menggunakan setting :
> {property name="hibernate.hbm2ddl.auto"}create{/property}
>
> sebelumnya saya menggunakan :
> {property name="hibernate.hbm2ddl.auto"}update{/property}
>
> {} means <>
>
> btw, thank's yach buat masukannya ^^...
> --
> View this message in context:
> http://www.nabble.com/-Ask--Index-di-Hibernate-Annotation-tp22776012p22797956.html
> Sent from the JUG Indonesia mailing list archive at Nabble.com.
>
> 



-- 
syaiful.mukhlis
gtalk:syaiful.mukh...@gmail.com

Reply via email to