Feeling in the immediate need to do a larger business system, think of the endless additions and deletions to check, paste copy, immediately after the brain rises a cool breeze. Then think of a search or write a Java code generator, so that in the normal development of the progress, you can still have more time to do something else.Gossip less say, first summarize the following requirements:I need this tool
Use php class diagram drawing tool -- phuml to build the class diagram of the project
Yesterday, I occasionally searched for the tools used to create UML class diagrams on the Internet. I was planning to create a class
the relationship between packages and packages. Because the package contains classes, you can represent the relationship between packages and packages based on the relationships between the classes in those packages.Figure DAssociation (Association)A structured relationship between entities in a UML class diagram relationship indicates that the objects are interconnected. The arrows are optional and are us
relationship. 4. Interface and implementation Relationship dashed line with a hollow triangle Additions: The interfaces in Java are divided into three categories: 1. Common interface 2. Identity interface 3. Constant interface function: Improve code readability Abstract class and Interface: : Neither can be instantiated different: Methods in abstract classes can be abstract, can be specific The
be differentiated from the semantic level;
The aggregation relationship is also implemented using instance variables. There is no association or aggregation from the Java syntax.
Combinatorial (composition) relationship (composition): Also a special case of association, he embodies a kind of contains-a relationship, which is stronger than aggregation, also known as strong aggregation; he also embodies the relationship between the whole and the parts
query, you can set enablecountbyexample and so on to true,This generates a example class corresponding to the Domainobjectname, Enablecountbyexample, and so on, when set to false.The corresponding example class is not generated.If the property is not configured in the table, the default fields are born as class properties.3, there are four kinds of operations: c
When I use mybatis to write the ing between a class and a data table, there are too many column names in the table and there are also many problems. It is complicated to write the corresponding column names and Class Object Attributes one by one.
To facilitate and reduce errors, you can use the code generator provided by mybatis to automatically generate xml ing
Java exception architecture diagram and several interview questions, java architecture diagram questions
1. java exception Architecture
The pink ones are checked exceptions, which must be captured by the try {} catch Block or declared by the throws clause in the method sign
Generator automatic generation of MyBatis configuration and class information
I use the command at the time of the test. The following error occurred
C:\users\xa>java-jar E:\mybatis-generator-core-1.3.1.jar-configfile D:\Workspaces\MyEclipse10\risenetba\src\ Generator.xml-overwriteTable configuration with catalog nul
phrase (verbs + nouns) converted to nouns, such as the increase in goods to have a commodity added class, registration of a user should have a registration class, etc.
(3) Boundary class: Boundary class is used to abstract the interaction object between external user and system, mainly including interface
interface and the database. The control class is usually a noun that is transformed by a verb-structure phrase (verbs + nouns), such as adding a commodity to a product, adding a class, registering a user registration class, etc.(3) Boundary class: The boundary class is used
attributes, the attribute name is underlined. As shown in.
In addition, a class chart can represent the relationship between classes and between objects. The difference between the two is that the object name in the object graph is underlined.
2. Relationships in class diagrams
(1) Generalization: Generalization and Generalization
Generalization indicates the inheritance relationship between classes, the i
= "true"> Generatedkeycolumn= "Id"SQLStatement= "MySQL"Identity= "true"/> Table> Context>generatorconfiguration>Several of these key nodes:1.jdbcConnection: Each context must have a jdbcconnection node that specifies the database connection properties required for the database connection.2. Javamodelgenerator: Used to define the settings that generate the model class.3.sqlMapGenerator: Used to define the properties of the SQL map
The use of append and generator labels in the Struts framework of Java,
Append label:These append labels need two or more lists as parameters and append them together, as shown in:
If there are two values of list A and list B: A1, A2, B1, and B2. Merging the list will give you A1, A2, B1, B2, while the append list will have A1, A2, B1, B2.
Create a category:First, let's create a simple
About MyBatis GeneratorMyBatis Generator (MBG) is a MyBatis code generator MyBatis and IBATIS. He can generate MyBatis versions of the code, and Ibatis 2.2.0 version of the code after. He can introspect the tables (or tables) of the database and generate the underlying objects that can be used to access (multiple) tables. This does not require the creation of objects and configuration files when interacting
RandomThe random class in Java generates a pseudo-random number, uses the seed of 48-bit, and then calls a linear congruential formula linear congruence equation (Donald Knuth's programming Art of 3.2.1)If two random instances use the same seed, and the same function is called, then the generated sequence is the sameYou can also call Math.random () to generate a random numberThe random instance is thread-sa
one), "0 ..." (representing 0 or more), "0,1" (for 0 or one), "N...M" (for N to M), "m...*" (for at least m).• Association Relationship (association) is the most commonly used relationship between classes and classes, which is a structured relationship between a class of objects and another class of objects. • In UML class diagrams, objects that are associated w
random number generator in Java: Random,threadlocalrandom,securerandomIn the articleThe Random is: Java.util.Random,Threadlocalrandom namely: Java.util.concurrent.ThreadLocalRandomSecureRandom namely: Java.security.SecureRandomis Q:random thread-safe?A:random is thread-safe, but may have low performance under multithreading.Reference:Http://docs.oracle.com/javase/7/docs/api/
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.