Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In some cases I want to update only one collumn, but I don't want to get the object from the data base and I only have it's ID and the value I want to update.
As the other values are null, the hibernate are updating then as null.
I wonder some criteria to erase the other columns from the update.
I read about dynamic-update=true and its only exclude the unmodified properties. But the nulls are still there at my update.
Does anyone have any idea?
Thanks!
Felipe
You have to get the object from the database, change the value and save it. If you don't want that, you have to write your own query.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Need help! I have a Json file with string values. By clicking on the button, I put a random string from this file into the arraylist. But I shouldn't put duplicate elements in the arraylist. How can i do this? Thank you in advance.
Use a Set instead of a List. It does not allow duplicates. You can get more detailed information in the reference documentation: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm using embedded form in camunda modeler, and I don't know how to get the value of the form variables to use in a service task
I tried using the id of the input task but it didn't seem to be working
The answer was cam-variable-name="firstName" cam-variable-type="String", so first name is the variable name that the task can use to get the value.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Code structure:
Public void Function() throws ioexcption
Update table a set values
Update table b set values
Insert into c values
Insert into d values
Many more updates and inserts
Function ends
How do I optimise the code? As the current code few minutes to complete when thousands of records are there. Will stored procedures help or will indexing help?
Write all the changes in a file, read the file, parse every line, create a prepared statement, populate the parameters and execute it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
My question is this that i want to make an invice or we can say bill for our customer , so that now i want to make an invice that has a special style it mean customer logos,address
like this and then i want to print it directly by printer devices so plz can anyone help me .
I use netbeas 8 IDE .
You could create a report, using iReport, and send data to fill it. All data can be organized in a model report, like images, grid (sub-report) with monetary values, bar-codes, etc...
http://community.jaspersoft.com/wiki/ireport-designer-tutorials-help
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
what is the best type to store data from csv format file, where is 150k records(lines) where each line has 9 columns(fields). After initialize my type with these data i need to do some operations on it, like add record in specified line, or add/change some data in some field. Also i need to compare data between themselves. Thank for help!
The best type to use is an ArrayList of a domain object. The domain object has 9 properties.
In other words: don't make it generic, make it specific for your problem. Then your code will be more readable and type-safety helps you when you create the functionality.