Search Results

Search found 2 results on 1 pages for 'squizz'.

Page 1/1 | 1 

  • Hibernate OneToMany and ManyToOne confusion! Null List!

    - by squizz
    I have two tables... For example - Company and Employee (let's keep this real simple) Company( id, name ); Employee( id, company_id ); Employee.company_id is a foreign key. My entity model looks like this... Employee @ManyToOne(cascade = CascadeType.PERSIST) @JoinColumn(name = "company_id") Company company; Company @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "company_id") List<Employee> employeeList = new ArrayList<Employee>(); So, yeah I want a list of employees for a company. When I do the following... Employee e = new Employee(); e.setCompany(c); //c is an Company that is already in the database. DAO.insertEmployee(e); //this works fine! If I then get my Company object it's list is empty! Ive tried endless different ways from the Hibernate documentation! Obviously not tried the correct one yet! I just want the list to be populated for me or find out a sensible alternative. Help would be greatly appreciated, thanks!

    Read the article

  • Recommended Linux distro to boot into RAM (from USB flash drive)?

    - by user91583
    I don't mind if I use USB flash drive or CD-ROM, but I would prefer USB flash drive. I had a squizz at http://en.wikipedia.org/wiki/List_of_Linux_distributions_that_run_from_RAM On my own computer, I would be able to use any of the distros in the list. The largest "RAM required" in the list is 4GB. I would like to be able to use it on any computer, so I suppose 1GB or less would be better. I tried to follow the method described on Distro that I can load into RAM? but the distro listed there, from Israel Remix Team, doesn't seem to be available. Before I start trial-and-error on different distros, does anyone have any recommendations?

    Read the article

1