Похожие чаты

Du you have a variable of some sort, where you

pass your queries to?

12 ответов

3 просмотра

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

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

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

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
42
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
Hello, I have a question. Can anyone help me? I want to make my cryptocurrencies, like Tron, untraceable by anyone, even government organizations. I was told that to do this,...
 ➛ Eᒪᕼᗩᗰ
14
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
Хтось використовував Vapor на Windows?
Jaroshevskii
15
It's notoriously hard to unit test video games, because they rely on user input so much and their output is audiovisual content. Does that mean video game code is never mainta...
Thomas
10
А чем вам питонисты не угодили?😂
.
79
Карта сайта