-
Of course, there are three to write, and one user can borrow, reserve, and handle three different borrows at the same time. How can you save three pieces of information without three!
class user {
private int userid;
private string username;
private string userpwd;
private string useremail;
private string userrole;User roles.
private string userright;User borrowing permissions.
private float userdebt;The user is currently in arrears.
private int usergetnum;The total number of times a user borrowed a book.
private borrow borrow;Borrow borrow
private borrow borrowoforder;Make an appointment for borrow
private borrow borrowofadmin;Handle borrow
-
A user, for a book, is a borrow, and it is impossible to be both booked and borrowed.
-
Why is Hibernate associated? It doesn't correlate with how you use hibernate to operate the database, how to objectify the database table, and it needs these mappings internally, otherwise you can't use hibernate.
Several mapping relationships "Lingshuang Plum Blossom" have already been said.
-
Hibernate is a framework for manipulating databases, and when you query data or something, all you look up are entities! These entities and the columns of the database are linked together by hibernate
-
To facilitate operations between entities.
-
This makes it easier to manipulate the database.
-
First, the program can operate hibernate through spring, because when you receive the data source in the spring configuration file, it is obtained by controlling hibernate through spring, and the hibernate configuration file can be changed, you can put it in **Yes, under the directory of src, or under webroot, as long as you write the path correctly, your path must have been written, To find out where your profile is, you can select your project and click on the menu bar.
This button, you can view the location of your project deployment, and you can also see the location where your configuration file is located, the file name of config, which is generally created under the classpath, so you don't need to write it, that is, you put it in this directory.
Second, the data source can be placed in the hibernate configuration file or in the spring configuration file, which is possible! It's up to you to get used to it! Hope it can help you, thank you!
-
You try to write this sentence classpath, write it as a relative path, and change it to something like this:
Hibernate application caching: Because the application accesses the database, the cost of reading and writing data is very high, and the use of persistence layer caching can reduce the interaction between the application and the database, that is, the accessed data is saved in the cache, and the application accesses the accessed data again, and the data can be obtained from the cache instead of the database. >>>More
There is no big problem with the association itself, but if multiple Amazon accounts are linked, if one of them goes wrong, it will affect the others associated with it, and avoiding the association can reduce the risk. If it is associated with the same site, if Amazon finds that your products are cross-sold and sell the same products, Amazon will ask you to forcibly delete one of the accounts, and if you do not delete it, Amazon may close both of your accounts. Amazon has a policy: >>>More
Left Links There are links Full Links Left Join, Right Join, Join
1. The business plan refers to the overall arrangement of various resources required for the implementation of the plan in terms of time and space according to the requirements of the relevant objectives of the business strategy decision-making plan. The enterprise shall determine and organize the comprehensive planning of all production and operation activities within a certain period of time. Under the guidance of the national economic plan, according to the market demand and the changes in the internal and external environment and conditions of the enterprise, combined with the long-term and current development needs, it makes reasonable use of human, material and financial resources to organize and plan all the business activities of the enterprise to achieve the expected goals and improve economic benefits; >>>More
Are you using a relative or absolute path locally?
If you use a relative path (for example. PIC is called a relative path), then it is enough to keep the relative position of the material and the web page unchanged after uploading. >>>More