Похожие чаты

Du you have a variable of some sort, where you

pass your queries to?

12 ответов

11 просмотров

i am useing hibernate,,,i used @PersistenceContext

and yes...waith

Mohammad
and yes...waith

There's a setting somewhere suitable only for early development phase. For some reason it is default. Search for "auto-update" or something like that in hibernate configuration. For spring that is in "application.properties/yml"

Mohammad
and yes...waith

That setting is exactly for this beahvior - on each app start it recreates schema based on your java code (entities classes).

Mohammad
and yes...waith

If Iremember it correctly, this behavior goes with "drop-create", you can grep for it

Dmytro Buryak
If Iremember it correctly, this behavior goes wit...

I changed it to update or create and stil there is no tables...and i am using persistense.xml to connect to server

Mohammad
I changed it to update or create and stil there is...

You've mentioned that the tables are not created in your drive. You've also mentioned that hibernate says that the tables are created. How does hibernate confirm that.. I mean, do you do a custom check if table exist (or) are you referring to the standard confirmation from the hibernate inbuilt methods (like persist())?

Velan Chandrasekar
You've mentioned that the tables are not created i...

I dont know why hibernate confrim it but it happend😂

Mohammad
I dont know why hibernate confrim it but it happen...

It cannot persist if the table is not there; I guess you're talking about data missing & not the tables missing. Confirm on that. If you're talking about tables itself missing, then do a manual check to check if the table exists during runtime. This way, you can confirm that the tables are getting created but are also getting deleted at the end of script, somehow.

Peter-Hans Автор вопроса
Velan Chandrasekar
It cannot persist if the table is not there; I gue...

This! And check whether you can select a table after restarting the Program.

Mohammad
I changed it to update or create and stil there is...

In persistence.xml it is done a little bit different way. I'm acutally not sure which takes precedenc, spring's application.properties or hibenate's persistence. I'm pretty sure you're facing issues because of exactly this hibernate's "feature". Your screenshot clearly proves that. And it's not about db configuration, priviledges, or anything like that. That's all hibernate. Here's the first google result: https://stackoverflow.com/questions/306806/hibernate-automatically-creating-updating-the-db-tables-based-on-entity-classes

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта