greptilian logo

IRC log for #friendlyjava, 2018-01-24

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
02:04 s161n7 joined ##friendlyjava
08:44 nanoz joined ##friendlyjava
08:55 abba joined ##friendlyjava
12:31 mr_lou joined ##friendlyjava
12:38 pulsar functional testing of rest apis in a jvm environment. anyone some thoughts to share?
12:39 * pulsar is considering rest assured, bdd/cucumber and/or gatling
13:37 nanoz torry , work on SOAP
13:47 nanoz pdurbin velp with my jpa thing
14:06 pdurbin what jpa thing?
14:34 nanoz im having this error for many to many with extra field
14:34 nanoz "main" javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: null id generated for:class entity.PersonDog
14:49 pdurbin nanoz: is the code open source?
15:22 pulsar to answer this one would need:
15:22 pulsar - ddl schema definition of the mapped table
15:22 pulsar - sourcecode of the entity
15:23 pulsar - details on jpa impelmentation configuration
15:23 pulsar it reads - invalid id generated. so for some reason jpa could not generate a valid id for your entity.
15:23 pulsar either @id is missing
15:23 pulsar or generator type is messed up
15:23 pulsar or jpa could not infer the generator type from the ddl
15:25 pulsar and, out of curiosity nanoz
15:25 pulsar You're in a desert walking along in the sand when all of the sudden you look down, and you see a tortoise, it's crawling toward you. You reach down, you flip the tortoise over on it's back. The tortoise lays on it's back, it's belly baking in the hot sun, beating it's legs trying to turn it'self over, but it can't, not without your help. But you're not helping. Why is that?
15:41 mr_lou joined ##friendlyjava
15:47 nanoz :P was away
15:47 nanoz i know it pulsar :P sorry
15:47 nanoz was figuring out bit hard1
16:02 pdurbin I hope the tortoise is ok. Poor thing.
16:06 nanoz https://pastebin.com/9EZAfJfV MYSQL
16:07 pdurbin nanoz: huh, interesting. We let Glassfish create all our tables for us. Based on whatever JPA annotations we use.
16:07 nanoz https://pastebin.com/amjx9YLM manyto1
16:09 pdurbin huh, I've never used @EmbeddedId before. I tend to use @Id and @GeneratedValue(strategy = GenerationType.IDENTITY).
16:09 nanoz https://pastebin.com/peJUFm2A rest of the entity
16:11 nanoz i have used embeddedid alot but it was generated
16:11 nanoz but unlike generated this is hand picked :P
16:12 pdurbin Do you write the SQL commands by hand? CREATE TABLE and such?
16:15 nanoz yes pdurbin
16:21 * nanoz pdurbin got paralyzed , can someone help him
16:22 nanoz pdurbin i'm good in backend
16:29 pdurbin Heh. I was at standup.
16:31 pdurbin We have a lot of tables. I wouldn't want to write all that SQL by hand. But I don't love that we rely on Glassfish to create our tables for us. I feel like there should be a good solution to handle database migrations in Java. Initially creating the tables and updating them over time and the JPA entity classes are updated.
16:31 pdurbin 91 tables so far: http://phoenix.dataverse.org/schemaspy/latest/index.html
16:34 nanoz i had to deal with about 160+ tables at some time
16:35 pdurbin And you wrote CREATE TABLE command for all of those by hand?
16:35 nanoz yes
16:35 nanoz by over time i wrote it
17:17 fekir joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode