Vote count: 0 Hi I have this test class which saves 3 entity class to database. @Test // @Transactional public void test() throws ParseException { //Creating a movie Movie movie1 = new Movie(); movie1.setMovieName("Movie One"); movie1.setPlot("Sample Plot1"); movie1.setReleaseDate(new Date(DateUtils.dateToMilliSecondsConverter(20160101L))); //Creating cast Cast cast1 = new Cast("male", "lead", Type.MALE_LEAD); Cast cast2 = new Cast("female", "lead", Type.FEMALE_LEAD); List cast = new ArrayList(); cast.add(cast1); cast.add(cast2); //adding cast to movie movie1.setCast(cast); movie1.setRuntime(120); movieDAO.saveOrUpdate( //Creating a movie Movie movie2 = new Movie(); movie2.setMovieName("Movi...
ادامه مطلبVote count: 0 I'm currently building project using bonfire and codeigniter framework, using bonfire is much easier to create some CRUD in my project. I'm using module builder to create the CRUD from my existing table in my database MySQL. But now i have a problem with primary key which i set from module builder. This is my problem: For example, i have table called "bank" in my database, this table have structure like this : nobank varchar(12), name varchar(10) i set the nobank as primary key, then i create the module called bank and set from this table, once build complete it show the table content. this is the problem, i view the table content which have the nobank (for example) A001 , it s...
ادامه مطلب