Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for talex
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Edit | Post #292871 | Initial revision | — | almost 2 years ago |
| Answer | — |
A: LocalDate format in fields stored as json via Hibernate It is possible to set custom JSON serializer for hibernate. Here is example: ``` @Configuration public class JsonHibernatePropertiesCustomizerConfig { @Bean HibernatePropertiesCustomizer customizer(ObjectMapper objectMapper) { return map -> map.put(AvailableSettings.JSO... (more) |
— | almost 2 years ago |
| Edit | Post #292870 | Initial revision | — | almost 2 years ago |
| Question | — |
LocalDate format in fields stored as json via Hibernate Setup I have a database table with field of `JSONB` type. I access said database using `Hibernate`. In hibernate I have entity mapped on said table. Entity contains field marked with `@JdbcTypeCode(SqlTypes.JSON)` annotation. It have type of some DTO. In that DTO I have a field of ty... (more) |
— | almost 2 years ago |
| Edit | Post #292789 | Initial revision | — | almost 2 years ago |
| Question | — |
Multiple versions of scala libraries detected! While compiling my `scala` project I'm getting following error. ``` org.scala-lang.modules:scala-parser-combinators2.13:2.4.0 requires scala version: 2.13.13 org.scalatest:scalatest2.13:3.2.19 requires scala version: 2.13.10 Multiple versions of scala libraries detected! ``` I underst... (more) |
— | almost 2 years ago |
| Comment | Post #292715 |
I don't see any flag button on tag page. (more) |
— | almost 2 years ago |
| Edit | Post #292714 | Initial revision | — | almost 2 years ago |
| Question | — |
What is the difference between `back-end` and `backend` tags? I found two tags: `back-end` and `backend`. Should we merge them? (more) |
— | almost 2 years ago |
| Edit | Post #292651 |
Post edited: |
— | almost 2 years ago |
| Edit | Post #292651 |
Post edited: |
— | almost 2 years ago |
| Edit | Post #292651 | Initial revision | — | almost 2 years ago |
| Question | — |
Json deserialization of enum, forbid int I have a DTO that contains an `enum` field: ```java @Getter @Setter static class Foo { Bar bar; } enum Bar { X, Y } ``` When I deserialize a JSON, it allows `int` as values: ```java var objectMapper = new ObjectMapper(); Foo foo = objectMapper.readValue(""" ... (more) |
— | almost 2 years ago |
| Comment | Post #292647 |
Just to make sure. You have `;` at end of each SQL statement in your scripts? (more) |
— | almost 2 years ago |
| Comment | Post #292546 |
I notice that none of those using `-` is actually child tags. (more) |
— | about 2 years ago |
| Edit | Post #292549 |
Post edited: |
— | about 2 years ago |
| Edit | Post #292549 | Initial revision | — | about 2 years ago |
| Question | — |
Tag full names. Currently we have composite tag names like `node:stream`. That tag have `Node.js` as its parent. I propose to display child tag with its parent, for example `Node.js:node:stream'. It will require renaming some composite tags and probably forbidding use of `:` (or other separator we decide t... (more) |
— | about 2 years ago |
| Comment | Post #292546 |
`java:stream` or `java-stream` will describe it perfectly.
Not sure what is naming convention here. (more) |
— | about 2 years ago |
| Edit | Post #292545 | Initial revision | — | about 2 years ago |
| Question | — |
I created a tag, now it need edit. I created `stream` tag, but can't edit it. It should at least have `java` as parent tag. (more) |
— | about 2 years ago |
| Edit | Post #292544 | Initial revision | — | about 2 years ago |
| Question | — |
Map<?, Optional<T>> to Map<?, T> I have a `Map` with `Optional` values. I want to filter it to remove empty values. ``` Map> input; Map result = input. // here is some code I'm looking for .collect(Collector.toMap(???)); ``` What is easiest way to achieve it? All I can think of requires `Opt... (more) |
— | about 2 years ago |
| Edit | Post #292474 | Initial revision | — | about 2 years ago |
| Answer | — |
A: Execute SQL queries stored in a table I manage to solve my problem with next code: ``` do $$ declare sqltext text; sqllist text[]; begin sqllist := array( select c.sqltext from sqlcommand c ); raise notice 'start'; for sqltext in select unnest(sqllist) loop raise notice '%', sqltext; execute sql... (more) |
— | about 2 years ago |
| Comment | Post #292472 |
I need mass rename primary keys in table (don't ask why, I don't know). So I generated DDL for that. Now I need to execute them. We have several databases, so I want script that easily portable.
I prefer to avoid creation additional stored procedures or functions. (more) |
— | about 2 years ago |
| Edit | Post #292472 | Initial revision | — | about 2 years ago |
| Question | — |
Execute SQL queries stored in a table Let's say I have a table with SQL statements in a column. I want to execute them all. ```sql create table sqlcommand( sqltext text ) ``` I know how to execute one SQL statement using `EXEC`, but I want to do it for all statements in the table. `exec (sqlcommand) from (select sqlte... (more) |
— | about 2 years ago |
