CJ__47
CJ__47
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 2/3/2025 in #java-help
Can I read a section of yaml without spring ?
I have a yaml file with say 3 properties sections A,B,C . I wanted to know if I can load a section only like B in in variable map of properties() . Parse will do for whole yaml, and not sure on spring . Manual map feels troublesome
9 replies
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 1/29/2025 in #java-help
I need help to understand consumers without autowire in spring
It's in kotlin. I am beginner in kafka I can read my kafka message very well with Autowired annotation but on trying to manually create I am getting 0 message . Code description : I call val prop=new Properties() prop.put() bootstrap server , key-value deserialiser ,schema url create consumer = new consumer(props) then subscribe to topic and poll gives 0 count but on autowire it gives count Values are sent during test itself so,that can't be issue I want to know if manual needs consumwr factory something
4 replies
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 10/8/2024 in #java-help
Need help with connecting Azurite to Java Azure SDK .
Hi I am unable to add Azure SDK in java to azurite . I need to test some blobs in java environment so ,I can't use Storage Explorer . Do I really need ssl certificate even if it's a localhost connection ?
5 replies
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 9/19/2024 in #java-help
PMD Java source analyzer insights in code insights section
Hi I was trying to see if it's possible to use pmd and display the error as a highlight like intellij ones . I found for vs code https://medium.com/@arindam-karmakar/getting-started-with-apex-pmd-analysis-7401185b5ba6 Also ,there's an unanswered issue on github for this : https://github.com/amitdev/PMD-Intellij/issues/177
18 replies
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 9/15/2024 in #java-help
I want to understand the need of keys in JPA (beginner)
Hi , Jpa entity in java to me is an interface for Database operations for classes . But , I don't understand need of defining primary key/foreign key in entities. It could be managed by database engines. To me , it seems like Database is a Data at rest concept while Entity is a data in transit concept
4 replies
JCHJava Community | Help. Code. Learn.
Created by CJ__47 on 9/12/2024 in #java-help
Beginners doubt on JPA entity foreign mapping
Hi I am new to jpa's and am learning of foreign key mappings between two table. I need resources to learn on Jakarta JPA manytoone mappings. I had a doubt on it , to me ,JPA seems like an inherited interface to database/sql operations, so why does it matter if we implement foreign key mapping or not ,if it can be handled by Sql engines well ?
6 replies