You can use the @GeneratedValue annotation. The agreement of the strategy type that you choose this annotation will generate automatically a … More
Author: camilamacedo86
Hibernate : How to create a unique constraint for a table with annotation ?
Annotation @Table(name = “tableName”, uniqueConstraints = @UniqueConstraint(name = “uniqueName”, columnNames = “columnName”)) Example: If you want all emails of the … More
Hibernate : How to map a list of values of one attribute ? ( @OneToMany / @ManyToOne )
If you want for example mapping the atribute State of Country entity. Any way, for ONE Country you can have MANY … More
Hibernate : How to mapping a column with a enum type class ?
Look the example and see how mapping with hibernate annotation a enum type column. Example : /** User.java**/ @Entity @Table(name … More
Think About: The way we think about work is broken
You can watch this movie and think about; what kind of employer, or better, what kind of person you want … More
Java : You can try the JDK 9
Java 9 has been scheduled for general availability in September 2016, according to aschedule proposal announced by Mark Reinhold, Chief Architect of … More
Java : Switch
Use switch Statement when you know the possible values and you want do something for each any case. Example : … More
Java 8: Cool example to filter, compare and group by something using lambdas and streams
Example : In this example we take all foods are in a supermarket. We want only available products grouped by … More
Meteor Js: The shortest path between points project with Neo4J + Meteor JS
About Solution This is a solution for finding the shortest path between points using a graph database (Neo4J) with Meteor … More
CommandLine : How to copy a file from a server using a public key ?
The command to copy files from others server is : scp user@server:/filepath/filename If you need connect with your public key … More