Examples of Student


Examples of com.google.appengine.datanucleus.test.jpa.UnownedJoinsJPA.Student

* @author Max Ross <maxr@google.com>
*/
public class JPQLQueryUnownedJoinTest extends JPATestCase {

  public void testTransientMeansTransient() throws EntityNotFoundException {
    Student student = new Student();
    beginTxn();
    em.persist(student);
    commitTxn();
    Entity studentEntity = ds.get(KeyFactory.createKey(kindForClass(Student.class), student.getId()));
    assertEquals(3, studentEntity.getProperties().size());
    assertTrue(studentEntity.hasProperty("courses"));
    assertTrue(studentEntity.hasProperty("grade"));
    assertTrue(studentEntity.hasProperty("major"));
  }
View Full Code Here

Examples of com.google.gwt.gen2.demo.scrolltable.shared.Student

    // Insert the new row
    FixedWidthGrid dataTable = getDataTable();
    beforeRow = dataTable.insertRow(beforeRow);

    // Set the data in the new row
    Student student = STUDENT_DATA.generateStudent();
    dataTable.setText(beforeRow, 0, student.getFirstName());
    dataTable.setText(beforeRow, 1, student.getLastName());
    dataTable.setText(beforeRow, 2, student.getAge() + "");
    dataTable.setText(beforeRow, 3, student.isMale() ? "male" : "female");
    dataTable.setText(beforeRow, 4, student.getRace());
    String color = student.getFavoriteColor();
    String colorHtml = "<FONT color=\"" + color + "\">" + color + "</FONT>";
    dataTable.setHTML(beforeRow, 5, colorHtml);
    dataTable.setText(beforeRow, 6, student.getFavoriteSport());
    dataTable.setText(beforeRow, 7, student.getCollege());
    dataTable.setText(beforeRow, 8, student.getGraduationYear() + "");
    String gpa = student.getGpa() + "";
    if (gpa.length() > 4) {
      gpa = gpa.substring(0, 4);
    }
    dataTable.setText(beforeRow, 9, gpa);
    dataTable.setText(beforeRow, 10, student.getId() + "");
    dataTable.setText(beforeRow, 11, student.getPin() + "");
  }
View Full Code Here

Examples of com.google.gwt.sample.dynatable.client.Student

      sched.addTimeSlot(timeSlots[i]);
    }
  }

  private Person generateRandomStudent() {
    Student student = new Student();

    String firstName = pickRandomString(FIRST_NAMES);
    String lastName = pickRandomString(LAST_NAMES);
    student.setName(firstName + " " + lastName);

    String subject = pickRandomString(SUBJECTS);
    student.setDescription("Majoring in " + subject);

    generateRandomSchedule(student.getClassSchedule());

    return student;
  }
View Full Code Here

Examples of com.hbtest.model.Student

import com.hbtest.model.Student;

public class StudentTest {
  @Test
  public void testStudentSave(){    Student s = new Student();
    s.setName("s1");
    s.setAge(1);
    s.setId(5);
    Configuration cfg = new Configuration();
    SessionFactory sf =  cfg.configure().buildSessionFactory();
    Session session = sf.openSession();
    session.beginTransaction();
    session.save(s);
View Full Code Here

Examples of com.ibs.academic.models.Student

    public void setCourseItem(Course courseItem) {
        this.courseItem = courseItem;
    }

    public void studentSelected(SelectEvent event) {
        Student student = (Student)event.getObject();
        transactionItem.setIdStudent(student);
/*        if (student.getAcademicStatus() == null || student.getAcademicStatus().equals("0")) {
            transactionItem.setTypeTransaction("1");
        } else if (student.getAcademicStatus().equals("1")){
            transactionItem.setTypeTransaction("2");
View Full Code Here

Examples of com.jm.java.College.Student

    try {
      index = Integer.parseInt(bufferedReader.readLine());

      // index = scanner.nextInt();
      Student student;
      if (index < college.getStudents().size()) {
        System.out.print("Name : ");
        student = college.getStudents().get(index);
        student.setName(bufferedReader.readLine());
        System.out.print("Age :");
        student.setAge(Byte.parseByte(bufferedReader.readLine()));
        // student.setName(scanner.nextLine());
        // student.setAge(scanner.nextByte());
      } else {
        System.out.print("Invalid index....");
      }
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter3.recipe6.task.Student

   
    // Creates the Phaser
    MyPhaser phaser=new MyPhaser();
   
    // Creates 5 students and register them in the phaser
    Student students[]=new Student[5];
    for (int i=0; i<students.length; i++){
      students[i]=new Student(phaser);
      phaser.register();
    }
   
    // Create 5 threads for the students and start them
    Thread threads[]=new Thread[students.length];
View Full Code Here

Examples of com.secondstack.training.basic.inheritance.Student

        Person siti = new Person("Siti", "Bandung");
        showPerson(siti);
       
        showPerson(new Person("Doni", "Semarang"));
       
        Student sahrul = new Student();
        sahrul.setName("Sahrul");
        sahrul.setAlamat("Yogyakarta");
        sahrul.setNoInduk("001");
        sahrul.setSekolah("SMA YOGYAKARTA");
        showStudent(sahrul);
       
        Person juwita = new Student();
        juwita.setName("Juwita");
        juwita.setAlamat("Yogyakarta");
        showPerson(juwita);
        showStudent((Student) juwita);
       
        Student studentJuwita = (Student) juwita;
        studentJuwita.setNoInduk("002");
        studentJuwita.setSekolah("SMA YOGYAKARTA");
        showStudent(studentJuwita);
    }
View Full Code Here

Examples of com.secondstack.training.spring.extjs.domain.Student

    @RequestMapping(params = {"id"}, method = RequestMethod.GET)
    @ResponseBody
    public Student findById(@RequestParam("id")Integer id){
        logger.debug("Received rest request to get data student");
        Student student = studentService.findById(id);
//        Student student = studentService.findById(id);
        return student;
    }
View Full Code Here

Examples of com.student.Student

      System.out.println("===============students====  firstname, middlename, lastname, fname, dob, address, Curriculum, Grade;===========");
     
        out.println("<html><body background=welcome.jpg ><h1 align=center ><font color=blue>Student Details</font></h1><br><table border =1 align=center ><tr><th>FirstName</th><th>Middle Name</th><th>LastName</th> <th>Father Name</th> <th>Date of birth</th>  <th>Address</th>  <th>Curriculum</th>  <th>Grade</th></tr>")
      while(rs.next()){
       
        Student s = new Student();
        s.setStudentid(rs.getInt(1));
        s.setFirstname(rs.getString(2));
        s.setMiddlename(rs.getString(3));
        s.setLastname(rs.getString(4));
        s.setFname(rs.getString(5));
        s.setDob(rs.getString(6));
        s.setAddress(rs.getString(7));
        s.setCurriculum(rs.getString(8));
        s.setGrade(rs.getString(9));
           l.add(s);
           System.out.println("student name:"+s.getFirstname());
           out.println("<tr><td>"+s.getFirstname() +"</td><td>"+s.getMiddlename()+"</td><td>"+s.getLastname()+"</td><td>"+s.getFname()+"</td><td>"+s.getDob()+"</td><td>"+s.getAddress()+"</td><td>"+s.getCurriculum()+"</td><td>"+s.getGrade()+"</td></tr>");
        }
     
      out.println("</table border=3 ></body></html>");
      out.println("<br/><br/>");
      out.println(" <h2 align=center><a href=./student.jsp>Register a new Student</a><br/></h2>");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.