Java interview-Hibernate summary, java interview-hibernate
1. Hibernate Retrieval Method
Ø navigation object graph retrieval (navigation to other objects based on the loaded objects .)
OID retrieval (the object is retrieved Based on the OID of the object .)
Ø HQL search (using an object-oriented HQL Query Language .)
rest) {if (Rest 0 | | Total 0) {// If rest or total is less than 0, throw an exception, you can write an exception handling class to inherit runtimeexception throw ...} //If rest is 0, indicating that this is the last red envelope, return the balance directly if (rest = 0) { Span class= "Hljs-keyword" >return total; } //take the balance average (to add the number of this time) long per = total/(rest + 1); //the random number of 1 to the average of the balance (mathematical expectation?) ) long
the main position. So how to review good technical points is necessary to find a good job (but also a large part of the luck component in it). For fresh students, because of the limited skills in school, so in the beginning of the interview after several companies, the feeling of shock is very normal, at this time must not lose heart, from each interview to sum up their own shortcomings, not to make up for
Linked list is often in the interview, this article refers to some other articles, together with the small series of their own summary, the basic algorithm has been tested and optimized.Algorithm Daquan (1) There are also some list problems in the single linked list, which will be sorted out in the future.* REFS:* http://blog.csdn.net/fightforyourdream/article/details/16353519* http://blog.csdn.net/luckyxiaoqiang/article/details/7393134 easy to handle
execution.Surround notification is one of the most common types of notifications. Most interception-based AOP frameworks, such as Nanning and JBOSS4, provide only surround notifications.The concept of pointcut (pointcut) and connection point matching is the key to AOP, which makes AOP different from other old technologies that simply provide interception functionality.The pointcut enables the location notification (advice) to be independent of the OO hierarchy. For example, a around notificatio
file names or directories under the current path for more informationpwd--Show current path locationcd--Switching directoriesPing IP address--test network connection is unblockedVim file name--Modify filei--into edit stateesc--exiting a previous state: wq--Save Exit: Q!—— indicates forced exit is not recommended for useCP Original file name copy file name--copy fileMV A.txt b.txt--renamed A.txt to B.txtMV A.txt aa/--move a.txt to the AA folderclear--Clear Screen CommandService iptables stop--sh
The list is a kind of problem which often appears in the interview, this article uses the Java to realize the common Link list related topic in the interview. This article mainly refers to the integration rewrite the "easy to handle the interview in the list of the topic" and "Algorithm encyclopedia (1) Single list" tw
What is AOP in the Java programmer interview test book? A programmer interview test book
AOP (Aspect-Oriented Programming) is a supplement to object-oriented development, it allows developers to dynamically modify the model without changing the original model to meet new requirements. For example, you can dynamically add log, security, or exception handling funct
Interview Diary--Alibaba Java interview
Ali's interview is the most stressful one, but also the most test of technology.Did not expect Ali's interview notice is now received, can be said to be belated love it.Interview The remote interv
:orcl", id,pwd);How to establish a connection to the Sybase database:Connectioncon=drivermanager.getconnection ("jdbc:sybase:tds:mydbcomputernameorip:2638", ID,PWD);How to establish a connection to a SQL Server database:Connectioncon=drivermanager.getconnection ("Jdbc:microsoft:sqlserver://mydbcomputernameorip:1433;databasename= Master ", id,pwd);How to establish a connection to the DB1 database:Connectioncon=drivermanager.getconnection ("Jdbc:db2://mydbcomputernameorip/mydbname", ID,PWD);(3) Cr
Some time ago participated in the Zhuhai far-light Java Development Engineer interview, I first interview, no experience plus preparation is not sufficient, fiasco. Here's a summary: lack of self-confidence
This is probably one of the most important reasons. Because of inadequate preparation and lack of experience in the inte
following we listed some of the more advanced database knowledge points, these knowledge points need to rely on project experience to precipitate, general senior programmer can know, and beginners or junior programmers may not know, you can in the interview, find the right opportunity to say, so the interviewer will be very impressed with you. Knowledge point 1, in the database programming, try to use the try...catch...finally code structure, while i
structure if the index structure is not specified. To delete an index syntax:DROP INDEX Table_name.index_name[,table_name.index_name]Description:table_name: The name of the table where the index resides. Index_name: The name of the index to remove. Use system stored procedure:sp_helpindex to view the index information for the specified table. The execution code is as follows:Exec sp_helpindex Book1;15, in the project may encounter this situation, the company will be out of the report, but the b
Java's current heat has declined, but there are still a lot of people who learn java. Java's post is also a lot of infiltration. So, those classic Java knowledge points, you can see the problem can say 123? Come and have a look.The difference between 1.JDK and JRE What is the difference between 2.final, finally, and finalize?3. The difference between threads and processesHow does the HashMap in 4.
consumption, etc. (Uppercase M and uppercase P)2. Get and Post methods for HTTP.3, introduce the epoll you know.4, the database SQL understanding degree.5, problems encountered in the project, how to solve their own and so on.6, handwriting a full array.7, B-Tree and B-tree.8, introduce the hash, how to resolve the conflict.9, the communication between processes, the advantages and disadvantages of shared memory mode.Three, Baidu three side: # # #1, say you usually look at some of the technical
current variable in the register (working memory) is indeterminate and needs to be read from main memory; Synchronized is the lock of the current variable, and other threads are blocked only if the variable is accessible to the front-thread.(3) volatile does not cause thread blocking, and synchronized can cause thread blocking.(4)volatile can only synchronize the value of a variable between the thread memory and the main memory, while synchronized synchronizes the values of all variables betwee
of STRUTS1 is mainly implemented by Actionform, which is similar to JavaBean, which contains several readable and writable properties for storing data and data validation. In general, an action is equipped with a actionform.Struts1 views are primarily implemented by JSPs. The data that the JSP displays can come from actionform, or it can be the data that the action holds in scope (request,session,application). Of course, using struts's own labels can be a great simplification.After using STRUTS
of STRUTS1 is mainly implemented by Actionform, which is similar to JavaBean, which contains several readable and writable properties for storing data and data validation. In general, an action is equipped with a actionform.Struts1 views are primarily implemented by JSPs. The data that the JSP displays can come from actionform, or it can be the data that the action holds in scope (request,session,application). Of course, using struts's own labels can be a great simplification.After using STRUTS
is then invoked according to the result of the processing to display the processing structure.The process of MVC: first the controller receives the user's request, invokes the corresponding model for business processing, and returns the data to the controller. The controller invokes the corresponding view to display the processing structure. and renders it to the user through a view. If you want to correspond to MVC in a project, the Jsp,controler in the view corresponding project corresponds t
, because the new learning is not very familiar, according to their own situation to choose)3. Browser cross-domain issues (foreground system calls can use JSONP to implement cross-domain browser issues, last year the trainees spent a few hours to learn this, only with this technology into the job 8K. )4.webservice (This technology already has an alternative technology, if not, can not take the time to review)5.Linux (the water is too deep, just talk about yourself in the project in the deployme
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.